Index: trunk/phase3/includes/ProtectionForm.php |
— | — | @@ -609,7 +609,7 @@ |
610 | 610 | */ |
611 | 611 | function showLogExtract( &$out ) { |
612 | 612 | # Show relevant lines from the protection log: |
613 | | - $out->addHTML( Xml::element( 'h2', null, LogPage::logName( 'protect' ) ) ); |
| 613 | + $out->addHTML( Xml::element( 'h2', null, LogPage::getName( 'protect' ) ) ); |
614 | 614 | LogEventsList::showLogExtract( $out, 'protect', $this->mTitle ); |
615 | 615 | # Let extensions add other relevant log extracts |
616 | 616 | wfRunHooks( 'ProtectionForm::showLogExtract', array($this->mArticle,$out) ); |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -1276,7 +1276,7 @@ |
1277 | 1277 | $wgOut->wrapWikiMsg( "<div class=\"error mw-error-cannotdelete\">\n$1\n</div>", |
1278 | 1278 | array( 'cannotdelete', wfEscapeWikiText( $title->getPrefixedText() ) ) |
1279 | 1279 | ); |
1280 | | - $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) ); |
| 1280 | + $wgOut->addHTML( Xml::element( 'h2', null, LogPage::getName( 'delete' ) ) ); |
1281 | 1281 | LogEventsList::showLogExtract( |
1282 | 1282 | $wgOut, |
1283 | 1283 | 'delete', |
— | — | @@ -1456,7 +1456,7 @@ |
1457 | 1457 | } |
1458 | 1458 | |
1459 | 1459 | $wgOut->addHTML( $form ); |
1460 | | - $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) ); |
| 1460 | + $wgOut->addHTML( Xml::element( 'h2', null, LogPage::getName( 'delete' ) ) ); |
1461 | 1461 | LogEventsList::showLogExtract( $wgOut, 'delete', |
1462 | 1462 | $this->getTitle()->getPrefixedText() |
1463 | 1463 | ); |
— | — | @@ -1489,7 +1489,7 @@ |
1490 | 1490 | $wgOut->wrapWikiMsg( "<div class=\"error mw-error-cannotdelete\">\n$1\n</div>", |
1491 | 1491 | array( 'cannotdelete', wfEscapeWikiText( $this->getTitle()->getPrefixedText() ) ) |
1492 | 1492 | ); |
1493 | | - $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) ); |
| 1493 | + $wgOut->addHTML( Xml::element( 'h2', null, LogPage::getName( 'delete' ) ) ); |
1494 | 1494 | |
1495 | 1495 | LogEventsList::showLogExtract( |
1496 | 1496 | $wgOut, |
Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -666,7 +666,7 @@ |
667 | 667 | if( $logType ) { |
668 | 668 | $logtitle = SpecialPage::getTitleFor( 'Log', $logType ); |
669 | 669 | $clink = '(' . Linker::linkKnown( $logtitle, |
670 | | - LogPage::logName( $logType ) ) . ')'; |
| 670 | + LogPage::getName( $logType ) ) . ')'; |
671 | 671 | } else { |
672 | 672 | $clink = Linker::link( $rc->getTitle() ); |
673 | 673 | } |
— | — | @@ -676,7 +676,7 @@ |
677 | 677 | list( $specialName, $logtype ) = SpecialPageFactory::resolveAlias( $rc->mAttribs['rc_title'] ); |
678 | 678 | if ( $specialName == 'Log' ) { |
679 | 679 | # Log updates, etc |
680 | | - $logname = LogPage::logName( $logtype ); |
| 680 | + $logname = LogPage::getName( $logtype ); |
681 | 681 | $clink = '(' . Linker::linkKnown( $rc->getTitle(), $logname ) . ')'; |
682 | 682 | } else { |
683 | 683 | wfDebug( "Unexpected special page in recentchanges\n" ); |
— | — | @@ -1124,7 +1124,7 @@ |
1125 | 1125 | # Article or log link |
1126 | 1126 | if( $logType ) { |
1127 | 1127 | $logtitle = SpecialPage::getTitleFor( 'Log', $logType ); |
1128 | | - $logname = LogPage::logName( $logType ); |
| 1128 | + $logname = LogPage::getName( $logType ); |
1129 | 1129 | $r .= '(' . Linker::linkKnown( $logtitle, htmlspecialchars( $logname ) ) . ')'; |
1130 | 1130 | } else { |
1131 | 1131 | $this->insertArticleLink( $r, $rcObj, $rcObj->unpatrolled, $rcObj->watched ); |
Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -258,7 +258,7 @@ |
259 | 259 | */ |
260 | 260 | private function showLogEntries() { |
261 | 261 | global $wgOut; |
262 | | - $wgOut->addHTML( '<h2>' . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" ); |
| 262 | + $wgOut->addHTML( '<h2>' . htmlspecialchars( LogPage::getName( 'delete' ) ) . "</h2>\n" ); |
263 | 263 | LogEventsList::showLogExtract( $wgOut, 'delete', $this->title ); |
264 | 264 | } |
265 | 265 | |
Index: trunk/phase3/includes/specials/SpecialUserrights.php |
— | — | @@ -600,7 +600,7 @@ |
601 | 601 | * @param $output OutputPage to use |
602 | 602 | */ |
603 | 603 | protected function showLogFragment( $user, $output ) { |
604 | | - $output->addHTML( Xml::element( 'h2', null, LogPage::logName( 'rights' ) . "\n" ) ); |
| 604 | + $output->addHTML( Xml::element( 'h2', null, LogPage::getName( 'rights' ) . "\n" ) ); |
605 | 605 | LogEventsList::showLogExtract( $output, 'rights', $user->getUserPage() ); |
606 | 606 | } |
607 | 607 | } |
Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -201,12 +201,12 @@ |
202 | 202 | |
203 | 203 | $qc = $this->getLogQueryCond(); |
204 | 204 | # Show relevant lines from the deletion log |
205 | | - $output->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" ); |
| 205 | + $output->addHTML( "<h2>" . htmlspecialchars( LogPage::getName( 'delete' ) ) . "</h2>\n" ); |
206 | 206 | LogEventsList::showLogExtract( $output, 'delete', |
207 | 207 | $this->targetObj, '', array( 'lim' => 25, 'conds' => $qc ) ); |
208 | 208 | # Show relevant lines from the suppression log |
209 | 209 | if( $user->isAllowed( 'suppressionlog' ) ) { |
210 | | - $output->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'suppress' ) ) . "</h2>\n" ); |
| 210 | + $output->addHTML( "<h2>" . htmlspecialchars( LogPage::getName( 'suppress' ) ) . "</h2>\n" ); |
211 | 211 | LogEventsList::showLogExtract( $output, 'suppress', |
212 | 212 | $this->targetObj, '', array( 'lim' => 25, 'conds' => $qc ) ); |
213 | 213 | } |
Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -588,7 +588,7 @@ |
589 | 589 | |
590 | 590 | function showLogFragment( $title ) { |
591 | 591 | $out = $this->getOutput(); |
592 | | - $out->addHTML( Xml::element( 'h2', null, LogPage::logName( 'move' ) ) ); |
| 592 | + $out->addHTML( Xml::element( 'h2', null, LogPage::getName( 'move' ) ) ); |
593 | 593 | LogEventsList::showLogExtract( $out, 'move', $title ); |
594 | 594 | } |
595 | 595 | |
Index: trunk/phase3/includes/specials/SpecialMergeHistory.php |
— | — | @@ -226,7 +226,7 @@ |
227 | 227 | } |
228 | 228 | |
229 | 229 | # Show relevant lines from the deletion log: |
230 | | - $out->addHTML( '<h2>' . htmlspecialchars( LogPage::logName( 'merge' ) ) . "</h2>\n" ); |
| 230 | + $out->addHTML( '<h2>' . htmlspecialchars( LogPage::getName( 'merge' ) ) . "</h2>\n" ); |
231 | 231 | LogEventsList::showLogExtract( $out, 'merge', $this->mTargetObj ); |
232 | 232 | |
233 | 233 | # When we submit, go by page ID to avoid some nasty but unlikely collisions. |
Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -398,7 +398,7 @@ |
399 | 399 | |
400 | 400 | # Use the language name for log titles, rather than Log/X |
401 | 401 | if( $name == 'Log' ) { |
402 | | - $titleLink = '(' . Linker::link( $title, LogPage::logName( $par ) ) . ')'; |
| 402 | + $titleLink = '(' . Linker::link( $title, LogPage::getName( $par ) ) . ')'; |
403 | 403 | } else { |
404 | 404 | $titleLink = Linker::link( $title ); |
405 | 405 | } |