Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php |
— | — | @@ -161,29 +161,8 @@ |
162 | 162 | * @param OutputPage $outputPage |
163 | 163 | */ |
164 | 164 | static function setHeaders( $outputPage ) { |
165 | | - global $wgJsMimeType, $wgScriptPath, $wgContLang; |
166 | | - global $wgCategoryTreeHijackPageCategories, $wgCategoryTreeExtPath, $wgCategoryTreeVersion; |
167 | | - |
168 | 165 | # Add the module |
169 | 166 | $outputPage->addModules( 'ext.categoryTree' ); |
170 | | - |
171 | | - # Add messages |
172 | | - $outputPage->addScript( |
173 | | - " <script type=\"{$wgJsMimeType}\"> |
174 | | - var categoryTreeCollapseMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-collapse' ) ) . "\"; |
175 | | - var categoryTreeExpandMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-expand' ) ) . "\"; |
176 | | - var categoryTreeCollapseBulletMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-collapse-bullet' ) ) . "\"; |
177 | | - var categoryTreeExpandBulletMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-expand-bullet' ) ) . "\"; |
178 | | - var categoryTreeLoadMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-load' ) ) . "\"; |
179 | | - var categoryTreeLoadingMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-loading' ) ) . "\"; |
180 | | - var categoryTreeNothingFoundMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-nothing-found' ) ) . "\"; |
181 | | - var categoryTreeNoSubcategoriesMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-no-subcategories' ) ) . "\"; |
182 | | - var categoryTreeNoParentCategoriesMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-no-parent-categories' ) ) . "\"; |
183 | | - var categoryTreeNoPagesMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-no-pages' ) ) . "\"; |
184 | | - var categoryTreeErrorMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-error' ) ) . "\"; |
185 | | - var categoryTreeRetryMsg = \"" . Xml::escapeJsString( wfMsgNoTrans( 'categorytree-retry' ) ) . "\"; |
186 | | - </script>\n" |
187 | | - ); |
188 | 167 | } |
189 | 168 | |
190 | 169 | static function getJsonCodec() { |