[Home]WikiPatches/ReportErrorNavigation

UseModWiki | WikiPatches | RecentChanges | Preferences

Include link to Home, avoiding "end of wiki" page.
sub ReportError {
  my ($errmsg) = @_;

  - print $q->header, $q->start_html, "<H2>", &QuoteHtml($errmsg), "</H2>", $q->end_html;
  + print $q->header, $q->start_html, '<h2>', &QuoteHtml($errmsg),
  # There's more than one way to do it
  + ' - ', "<a href=http://$ENV{HTTP_HOST}$ENV{SCRIPT_NAME}", 
  + &ScriptLinkChar(), ">", T('Home'), '</a>', '</h2>', 
  + $q->end_html;
}
--JuanmaMP

UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited October 4, 2009 1:16 pm by JuanmaMP (diff)
Search: