r85350 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85349‎ | r85350 | r85351 >
Date:17:50, 4 April 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix double credits, don't define multiple times
Modified paths:
  • /trunk/extensions/CategoryTree/CategoryTree.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryTree/CategoryTree.php
@@ -108,20 +108,13 @@
109109 * Register extension setup hook and credits
110110 */
111111 $wgExtensionFunctions[] = 'efCategoryTree';
112 -$wgExtensionCredits['specialpage'][] = array(
 112+$wgExtensionCredits['specialpage'][] = $wgExtensionCredits['parserhook'][] = array(
113113 'path' => __FILE__,
114114 'name' => 'CategoryTree',
115115 'author' => 'Daniel Kinzler',
116116 'url' => 'http://www.mediawiki.org/wiki/Extension:CategoryTree',
117117 'descriptionmsg' => 'categorytree-desc',
118118 );
119 -$wgExtensionCredits['parserhook'][] = array(
120 - 'path' => __FILE__,
121 - 'name' => 'CategoryTree',
122 - 'author' => 'Daniel Kinzler',
123 - 'url' => 'http://www.mediawiki.org/wiki/Extension:CategoryTree',
124 - 'descriptionmsg' => 'categorytree-desc',
125 -);
126119
127120 /**
128121 * Register the special page
@@ -190,8 +183,7 @@
191184
192185 if ( $wgCategoryTreeForceHeaders ) {
193186 CategoryTree::setHeaders( $wgOut );
194 - }
195 - else {
 187+ } else {
196188 $wgHooks['OutputPageParserOutput'][] = 'efCategoryTreeParserOutput';
197189 }
198190 }

Status & tagging log