Index: trunk/extensions/CategoryTree/CategoryTree.php |
— | — | @@ -108,20 +108,13 @@ |
109 | 109 | * Register extension setup hook and credits |
110 | 110 | */ |
111 | 111 | $wgExtensionFunctions[] = 'efCategoryTree'; |
112 | | -$wgExtensionCredits['specialpage'][] = array( |
| 112 | +$wgExtensionCredits['specialpage'][] = $wgExtensionCredits['parserhook'][] = array( |
113 | 113 | 'path' => __FILE__, |
114 | 114 | 'name' => 'CategoryTree', |
115 | 115 | 'author' => 'Daniel Kinzler', |
116 | 116 | 'url' => 'http://www.mediawiki.org/wiki/Extension:CategoryTree', |
117 | 117 | 'descriptionmsg' => 'categorytree-desc', |
118 | 118 | ); |
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 | | -); |
126 | 119 | |
127 | 120 | /** |
128 | 121 | * Register the special page |
— | — | @@ -190,8 +183,7 @@ |
191 | 184 | |
192 | 185 | if ( $wgCategoryTreeForceHeaders ) { |
193 | 186 | CategoryTree::setHeaders( $wgOut ); |
194 | | - } |
195 | | - else { |
| 187 | + } else { |
196 | 188 | $wgHooks['OutputPageParserOutput'][] = 'efCategoryTreeParserOutput'; |
197 | 189 | } |
198 | 190 | } |