Index: trunk/extensions/SmoothGallery/SmoothGalleryClass.php |
— | — | @@ -178,8 +178,6 @@ |
179 | 179 | } |
180 | 180 | |
181 | 181 | function renderPlainGallery ( $galleryArray ) { |
182 | | - global $wgVersion; |
183 | | - |
184 | 182 | if ( !isset( $galleryArray["images"] ) ) { |
185 | 183 | return ''; |
186 | 184 | } |
Index: trunk/extensions/NSFileRepo/NSFileRepo.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | * Initial setup, add .i18n. messages from $IP/extensions/DiscussionThreading/DiscussionThreading.i18n.php |
66 | 66 | */ |
67 | 67 | function NSFileRepoSetup() { |
68 | | - global $wgLocalFileRepo, $wgVersion; |
| 68 | + global $wgLocalFileRepo; |
69 | 69 | $wgLocalFileRepo['class'] = "NSLocalRepo"; |
70 | 70 | RepoGroup::destroySingleton(); |
71 | 71 | } |
Index: trunk/extensions/GetFamily/GetFamily.php |
— | — | @@ -188,9 +188,6 @@ |
189 | 189 | } |
190 | 190 | $out .= " }\n \n"; |
191 | 191 | } |
192 | | - $version = array(); |
193 | | - preg_match( '/[0-9]*\.[0-9]*/', $wgVersion, $version ); |
194 | | - $version = $version[0]; |
195 | 192 | |
196 | 193 | $out .= " |
197 | 194 | def hostname(self, code): |
— | — | @@ -211,7 +208,7 @@ |
212 | 209 | return '%s?title=%s:Userlogin&action=submitlogin' % (self.path(code), self.special_namespace_url(code)) |
213 | 210 | |
214 | 211 | def version(self, code): |
215 | | - return '" . $version . "' # The MediaWiki version used. Not very important in most cases. |
| 212 | + return '" . $wgVersion . "' # The MediaWiki version used. Not very important in most cases. |
216 | 213 | "; |
217 | 214 | } else { |
218 | 215 | $out .= wfMsg( 'getfamily-interwikierror' ); |
Index: trunk/extensions/Crosswiki/Block/CrosswikiBlock.page.php |
— | — | @@ -262,12 +262,9 @@ |
263 | 263 | * @param mixed $par Parameter passed to the page |
264 | 264 | */ |
265 | 265 | public function execute( $par ) { |
266 | | - global $wgOut, $wgUser, $wgRequest, $wgContLang, $wgLang; |
267 | | - global $wgVersion, $wgMaxNameChars, $wgCapitalLinks; |
| 266 | + global $wgOut, $wgUser, $wgRequest; |
268 | 267 | |
269 | 268 | # Add messages |
270 | | - |
271 | | - |
272 | 269 | $this->setHeaders(); |
273 | 270 | |
274 | 271 | if ( !$wgUser->isAllowed( 'crosswikiblock' ) ) { |
Index: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php |
— | — | @@ -53,11 +53,8 @@ |
54 | 54 | return true; |
55 | 55 | } |
56 | 56 | function mvSetupExtension() { |
57 | | - global $mvVersion, $mvNamespace, $mvgIP, $wgHooks, $wgExtensionCredits, $mvMasterStore, |
58 | | - $wgParser, $mvArticlePath, $mvgScriptPath, $wgServer, $markerList, $wgVersion, |
59 | | - $wgAjaxExportList, $mvEnableAutoComplete, $mvEnableJSMVDrewrite, |
60 | | - $wgAutoloadClasses, $wgSpecialPages, $wgMediaHandlers, $wgJSAutoloadClasses, |
61 | | - $wgAPIModules; |
| 57 | + global $mvgIP, $wgHooks, $wgExtensionCredits, $wgParser, |
| 58 | + $wgAjaxExportList, $wgAutoloadClasses, $wgSpecialPages, $wgMediaHandlers; |
62 | 59 | |
63 | 60 | |
64 | 61 | //add the ALL page header |
Index: trunk/extensions/FCKeditor/FCKeditorParser.body.php |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | * @private |
149 | 149 | */ |
150 | 150 | function strip( $text, $state, $stripcomments = false, $dontstrip = array() ) { |
151 | | - global $wgContLang, $wgUseTeX, $wgScriptPath, $wgVersion, $wgHooks, $wgExtensionFunctions; |
| 151 | + global $wgContLang, $wgUseTeX, $wgScriptPath, $wgHooks, $wgExtensionFunctions; |
152 | 152 | |
153 | 153 | wfProfileIn( __METHOD__ ); |
154 | 154 | $render = ( $this->mOutputType == OT_HTML ); |