Cripple the wiki text stuff for now. It doesn't SEEM dangerous but I haven't tested...
[lhc/web/wiklou.git] / includes / SpecialAllmessages.php
index 1b0bee5..926a062 100644 (file)
@@ -12,8 +12,9 @@ function wfSpecialAllmessages() {
        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;
        }
 
@@ -102,14 +103,14 @@ function makeHTMLText( $messages ) {
                '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'>
@@ -168,7 +169,7 @@ function makeHTMLText( $messages ) {
                        $talkLink = $sk->makeBrokenLinkObj( $talkPage, htmlspecialchars( $talk ) );
                }
                
-               $anchor = htmlspecialchars( strtolower( $title ) );
+               $anchor = 'msg_' . htmlspecialchars( strtolower( $title ) );
                $anchor = "<a id=\"$anchor\" name=\"$anchor\"></a>";
 
                if($changed) {