r29560 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29559‎ | r29560 | r29561 >
Date:21:56, 10 January 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Delay message loading
Modified paths:
  • /trunk/extensions/Oversight/HideRevision.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Oversight/HideRevision.php
@@ -61,7 +61,6 @@
6262 $GLOBALS['wgHooks']['ArticleViewHeader'][] = 'hrArticleViewHeaderHook';
6363 $GLOBALS['wgHooks']['DiffViewHeader'][] = 'hrDiffViewHeaderHook';
6464 $GLOBALS['wgHooks']['UndeleteShowRevision'][] = 'hrUndeleteShowRevisionHook';
65 - wfLoadExtensionMessages('HideRevision');
6665 }
6766
6867 /**
@@ -102,6 +101,7 @@
103102 }
104103
105104 function insertTab( $skin, &$content_actions ) {
 105+ wfLoadExtensionMessages('HideRevision');
106106 $special = Title::makeTitle( NS_SPECIAL, 'HideRevision' );
107107 $content_actions['hiderevision'] = array(
108108 'class' => false,
@@ -145,6 +145,7 @@
146146 * Special page handler function for Special:HideRevision
147147 */
148148 function wfSpecialHideRevision( $par=null ) {
 149+ wfLoadExtensionMessages('HideRevision');
149150 global $wgRequest;
150151 $form = new HideRevisionForm( $wgRequest );
151152 $form->run();
@@ -494,6 +495,7 @@
495496 */
496497 function wfSpecialOversight( $par=null ) {
497498 global $wgRequest, $wgUser, $wgRCMaxAge;
 499+ wfLoadExtensionMessages('HideRevision');
498500 $revision = $wgRequest->getIntOrNull( 'revision' );
499501 if ( $wgRequest->getCheck( 'diff' ) && !is_null( $revision )) {
500502 sosShowDiff( $revision);

Status & tagging log