From: Niklas Laxström Date: Thu, 29 Dec 2011 12:58:43 +0000 (+0000) Subject: Non oldrc change lists were not displaying the names of new log types properly. While... X-Git-Tag: 1.31.0-rc.0~25690 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=e4183b1f592fdaaf9918275015365d4e171437bf;p=lhc%2Fweb%2Fwiklou.git Non oldrc change lists were not displaying the names of new log types properly. While at it, drop support for displaying very old style log entries --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 32a8d47524..066d3e3bd3 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -665,23 +665,17 @@ class EnhancedChangesList extends ChangesList { } elseif( $type == RC_LOG ) { if( $logType ) { $logtitle = SpecialPage::getTitleFor( 'Log', $logType ); - $clink = '(' . Linker::linkKnown( $logtitle, - LogPage::logName( $logType ) ) . ')'; + $logpage = new LogPage( $logType ); + $logname = $logpage->getName()->escaped(); + $clink = '(' . Linker::linkKnown( $logtitle, $logname ) . ')'; } else { $clink = Linker::link( $rc->getTitle() ); } $watched = false; // Log entries (old format) and special pages } elseif( $rc->mAttribs['rc_namespace'] == NS_SPECIAL ) { - list( $specialName, $logtype ) = SpecialPageFactory::resolveAlias( $rc->mAttribs['rc_title'] ); - if ( $specialName == 'Log' ) { - # Log updates, etc - $logname = LogPage::logName( $logtype ); - $clink = '(' . Linker::linkKnown( $rc->getTitle(), $logname ) . ')'; - } else { - wfDebug( "Unexpected special page in recentchanges\n" ); - $clink = ''; - } + wfDebug( "Unexpected special page in recentchanges\n" ); + $clink = ''; // Edits } else { $clink = Linker::linkKnown( $rc->getTitle() );