(!$wgTitle->isProtected() || $wgUser->isSysop()) ) {
$t = wfMsg( "editthispage" );
$oid = $red = "";
- if ( $redirect ) {
+ if ( !empty($redirect) ) {
$red = "&redirect={$redirect}";
}
if ( !empty($oldid) && ! isset( $diff ) ) {
);
$toolbar ="<script type='text/javascript'>\n/*<![CDATA[*/\n";
- $toolbar.="document.writeln(\"<div id='toolbar' tabindex='4000000'>\");\n";
+ $toolbar.="document.writeln(\"<div id='toolbar'>\");\n";
foreach($toolarray as $tool) {
$image=$wgUploadPath."/".$tool["image"];
$toolbar.="addInfobox('" . addslashes( wfMsg( "infobox" ) ) . "','" . addslashes(wfMsg("infobox_alert")) . "');\n";
$toolbar.="document.writeln(\"</div>\");\n";
- $toolbar.="/*]]>*/</script>";
+ $toolbar.="/*]]>*/\n</script>";
return $toolbar;
}
}