revert r106095, fix apparently not this simple
authorJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Tue, 13 Dec 2011 21:34:16 +0000 (21:34 +0000)
committerJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Tue, 13 Dec 2011 21:34:16 +0000 (21:34 +0000)
includes/Article.php
includes/ChangesList.php
includes/FileDeleteForm.php
includes/LogPage.php
includes/ProtectionForm.php
includes/specials/SpecialMergeHistory.php
includes/specials/SpecialMovepage.php
includes/specials/SpecialRevisiondelete.php
includes/specials/SpecialUserrights.php

index a3e5590..80ae240 100644 (file)
@@ -1276,7 +1276,7 @@ class Article extends Page {
                        $wgOut->wrapWikiMsg( "<div class=\"error mw-error-cannotdelete\">\n$1\n</div>",
                                        array( 'cannotdelete', wfEscapeWikiText( $title->getPrefixedText() ) )
                                );
-                       $wgOut->addHTML( Xml::element( 'h2', null, LogPage::getName( 'delete' ) ) );
+                       $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) );
                        LogEventsList::showLogExtract(
                                $wgOut,
                                'delete',
@@ -1456,7 +1456,7 @@ class Article extends Page {
                        }
 
                $wgOut->addHTML( $form );
-               $wgOut->addHTML( Xml::element( 'h2', null, LogPage::getName( 'delete' ) ) );
+               $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) );
                LogEventsList::showLogExtract( $wgOut, 'delete',
                        $this->getTitle()->getPrefixedText()
                );
@@ -1489,7 +1489,7 @@ class Article extends Page {
                                $wgOut->wrapWikiMsg( "<div class=\"error mw-error-cannotdelete\">\n$1\n</div>",
                                        array( 'cannotdelete', wfEscapeWikiText( $this->getTitle()->getPrefixedText() ) )
                                );
-                               $wgOut->addHTML( Xml::element( 'h2', null, LogPage::getName( 'delete' ) ) );
+                               $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) );
 
                                LogEventsList::showLogExtract(
                                        $wgOut,
index f2d10e1..32a8d47 100644 (file)
@@ -666,7 +666,7 @@ class EnhancedChangesList extends ChangesList {
                        if( $logType ) {
                                $logtitle = SpecialPage::getTitleFor( 'Log', $logType );
                                $clink = '(' . Linker::linkKnown( $logtitle,
-                                       LogPage::getName( $logType ) ) . ')';
+                                       LogPage::logName( $logType ) ) . ')';
                        } else {
                                $clink = Linker::link( $rc->getTitle() );
                        }
@@ -676,7 +676,7 @@ class EnhancedChangesList extends ChangesList {
                        list( $specialName, $logtype ) = SpecialPageFactory::resolveAlias( $rc->mAttribs['rc_title'] );
                        if ( $specialName == 'Log' ) {
                                # Log updates, etc
-                               $logname = LogPage::getName( $logtype );
+                               $logname = LogPage::logName( $logtype );
                                $clink = '(' . Linker::linkKnown( $rc->getTitle(), $logname ) . ')';
                        } else {
                                wfDebug( "Unexpected special page in recentchanges\n" );
@@ -1124,7 +1124,7 @@ class EnhancedChangesList extends ChangesList {
                # Article or log link
                if( $logType ) {
                        $logtitle = SpecialPage::getTitleFor( 'Log', $logType );
-                       $logname = LogPage::getName( $logType );
+                       $logname = LogPage::logName( $logType );
                        $r .= '(' . Linker::linkKnown( $logtitle, htmlspecialchars( $logname ) ) . ')';
                } else {
                        $this->insertArticleLink( $r, $rcObj, $rcObj->unpatrolled, $rcObj->watched );
index fcf4105..eedb68e 100644 (file)
@@ -258,7 +258,7 @@ class FileDeleteForm {
         */
        private function showLogEntries() {
                global $wgOut;
-               $wgOut->addHTML( '<h2>' . htmlspecialchars( LogPage::getName( 'delete' ) ) . "</h2>\n" );
+               $wgOut->addHTML( '<h2>' . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" );
                LogEventsList::showLogExtract( $wgOut, 'delete', $this->title );
        }
 
index 454f935..a6cf3d3 100644 (file)
@@ -195,7 +195,7 @@ class LogPage {
         * @deprecated in 1.19, warnings in 1.21. Use getDescription()
         */
        public static function logHeader( $type ) {
-               wfDeprecated( __METHOD__, '1.19' );
+               wfDeprecated( __METHOD__, '1.19' );
                global $wgLogHeaders;
                return wfMsgExt( $wgLogHeaders[$type], array( 'parseinline' ) );
        }
@@ -398,7 +398,7 @@ class LogPage {
 
                                        # Use the language name for log titles, rather than Log/X
                                        if( $name == 'Log' ) {
-                                               $titleLink = '(' . Linker::link( $title, LogPage::getName( $par ) ) . ')';
+                                               $titleLink = '(' . Linker::link( $title, LogPage::logName( $par ) ) . ')';
                                        } else {
                                                $titleLink = Linker::link( $title );
                                        }
index e8ca054..caa949d 100644 (file)
@@ -609,7 +609,7 @@ class ProtectionForm {
         */
        function showLogExtract( &$out ) {
                # Show relevant lines from the protection log:
-               $out->addHTML( Xml::element( 'h2', null, LogPage::getName( 'protect' ) ) );
+               $out->addHTML( Xml::element( 'h2', null, LogPage::logName( 'protect' ) ) );
                LogEventsList::showLogExtract( $out, 'protect', $this->mTitle );
                # Let extensions add other relevant log extracts
                wfRunHooks( 'ProtectionForm::showLogExtract', array($this->mArticle,$out) );
index 5c6266b..19650da 100644 (file)
@@ -226,7 +226,7 @@ class SpecialMergeHistory extends SpecialPage {
                }
 
                # Show relevant lines from the deletion log:
-               $out->addHTML( '<h2>' . htmlspecialchars( LogPage::getName( 'merge' ) ) . "</h2>\n" );
+               $out->addHTML( '<h2>' . htmlspecialchars( LogPage::logName( 'merge' ) ) . "</h2>\n" );
                LogEventsList::showLogExtract( $out, 'merge', $this->mTargetObj );
 
                # When we submit, go by page ID to avoid some nasty but unlikely collisions.
index 6a1985c..5eb0247 100644 (file)
@@ -588,7 +588,7 @@ class MovePageForm extends UnlistedSpecialPage {
 
        function showLogFragment( $title ) {
                $out = $this->getOutput();
-               $out->addHTML( Xml::element( 'h2', null, LogPage::getName( 'move' ) ) );
+               $out->addHTML( Xml::element( 'h2', null, LogPage::logName( 'move' ) ) );
                LogEventsList::showLogExtract( $out, 'move', $title );
        }
 
index d307e09..dce79d3 100644 (file)
@@ -201,12 +201,12 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
 
                $qc = $this->getLogQueryCond();
                # Show relevant lines from the deletion log
-               $output->addHTML( "<h2>" . htmlspecialchars( LogPage::getName( 'delete' ) ) . "</h2>\n" );
+               $output->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" );
                LogEventsList::showLogExtract( $output, 'delete',
                        $this->targetObj, '', array( 'lim' => 25, 'conds' => $qc ) );
                # Show relevant lines from the suppression log
                if( $user->isAllowed( 'suppressionlog' ) ) {
-                       $output->addHTML( "<h2>" . htmlspecialchars( LogPage::getName( 'suppress' ) ) . "</h2>\n" );
+                       $output->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'suppress' ) ) . "</h2>\n" );
                        LogEventsList::showLogExtract( $output, 'suppress',
                                $this->targetObj, '', array( 'lim' => 25, 'conds' => $qc ) );
                }
index 710ec1e..100d5c1 100644 (file)
@@ -600,7 +600,7 @@ class UserrightsPage extends SpecialPage {
         * @param $output OutputPage to use
         */
        protected function showLogFragment( $user, $output ) {
-               $output->addHTML( Xml::element( 'h2', null, LogPage::getName( 'rights' ) . "\n" ) );
+               $output->addHTML( Xml::element( 'h2', null, LogPage::logName( 'rights' ) . "\n" ) );
                LogEventsList::showLogExtract( $output, 'rights', $user->getUserPage() );
        }
 }