global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache, $wgTitle;
global $wgUseDatabaseMessages;
- if(!$wgUseDatabaseMessages) {
- $wgOut->addHTML(wfMsg('allmessagesnotsupportedDB'));
+ # The page isn't much use if the MediaWiki namespace is not being used
+ if( !$wgUseDatabaseMessages ) {
+ $wgOut->addWikiText( wfMsg( 'allmessagesnotsupportedDB' ) );
return;
}
'onkeyup' => 'allmessagesfilter()',),
'');
$checkbox = wfElement( 'input', array(
- 'type' => 'checkbox',
+ 'type' => 'button',
+ 'value' => wfMsgHtml( 'allmessagesmodified' ),
'id' => 'allmessagescheckbox',
'onclick' => 'allmessagesmodified()',),
'');
$txt = '<span id="allmessagesfilter" style="display:none;">' .
- wfMsgHtml('allmessagesfilter') . " {$input}{$checkbox} " .
- wfMsgHtml( 'allmessagesmodified' ) . '</span>';
+ wfMsgHtml('allmessagesfilter') . " {$input}{$checkbox} " . '</span>';
$txt .= "
<table border='1' cellspacing='0' width='100%' id='allmessagestable'>
$talkLink = $sk->makeBrokenLinkObj( $talkPage, htmlspecialchars( $talk ) );
}
- $anchor = htmlspecialchars( strtolower( $title ) );
+ $anchor = 'msg_' . htmlspecialchars( strtolower( $title ) );
$anchor = "<a id=\"$anchor\" name=\"$anchor\"></a>";
if($changed) {