Index: trunk/extensions/LatexDoc/LatexDoc.php |
— | — | @@ -13,7 +13,6 @@ |
14 | 14 | 'descriptionmsg' => 'latexdoc-desc', |
15 | 15 | ); |
16 | 16 | |
17 | | -$wgExtensionFunctions[] = 'wfLatexDocInit'; |
18 | 17 | $dir = dirname(__FILE__) . '/'; |
19 | 18 | $wgExtensionMessagesFiles['LatexDoc'] = $dir . 'LatexDoc.i18n.php'; |
20 | 19 | |
— | — | @@ -153,9 +152,5 @@ |
154 | 153 | |
155 | 154 | $wgLatexDoc = new LatexDoc; |
156 | 155 | |
157 | | -function wfLatexDocInit() { |
158 | | - global $wgHooks, $wgLatexDoc; |
159 | | - wfLoadExtensionMessages( 'LatexDoc' ); |
160 | | - $wgHooks['UnknownAction'][] = &$wgLatexDoc; |
161 | | - $wgHooks['ParserBeforeStrip'][] = &$wgLatexDoc; |
162 | | -} |
| 156 | +$wgHooks['UnknownAction'][] = &$wgLatexDoc; |
| 157 | +$wgHooks['ParserBeforeStrip'][] = &$wgLatexDoc; |
Index: trunk/extensions/Interlanguage/InterlanguageCentral.php |
— | — | @@ -23,7 +23,6 @@ |
24 | 24 | * @see http://www.mediawiki.org/wiki/Extension:Interlanguage |
25 | 25 | */ |
26 | 26 | |
27 | | -$wgExtensionFunctions[]="wfInterlanguageCentralExtension"; |
28 | 27 | $wgJobClasses['purgeDependentWikis'] = 'InterlanguageCentralExtensionPurgeJob'; |
29 | 28 | $wgExtensionCredits['parserhook'][] = array( |
30 | 29 | 'name' => 'Interlanguage Central', |
— | — | @@ -33,15 +32,11 @@ |
34 | 33 | 'descriptionmsg' => 'interlanguagecentral-desc', |
35 | 34 | ); |
36 | 35 | $wgExtensionMessagesFiles['Interlanguagecentral'] = dirname(__FILE__) . '/InterlanguageCentral.i18n.php'; |
37 | | - |
38 | | -function wfInterlanguageCentralExtension() { |
39 | | - global $wgHooks, $wgInterlanguageCentralExtension; |
40 | 36 | |
41 | | - $wgInterlanguageCentralExtension = new InterlanguageCentralExtension(); |
42 | | - $wgHooks['ArticleSave'][] = $wgInterlanguageCentralExtension; |
43 | | - $wgHooks['ArticleSaveComplete'][] = $wgInterlanguageCentralExtension; |
44 | | - //TODO: ArticleDelete etc. |
45 | | -} |
| 37 | +$wgInterlanguageCentralExtension = new InterlanguageCentralExtension(); |
| 38 | +$wgHooks['ArticleSave'][] = $wgInterlanguageCentralExtension; |
| 39 | +$wgHooks['ArticleSaveComplete'][] = $wgInterlanguageCentralExtension; |
| 40 | +//TODO: ArticleDelete etc. |
46 | 41 | |
47 | 42 | class InterlanguageCentralExtension { |
48 | 43 | //ILL = InterLanguageLinks |
Index: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php |
— | — | @@ -54,7 +54,7 @@ |
55 | 55 | } |
56 | 56 | function mvSetupExtension() { |
57 | 57 | global $mvVersion, $mvNamespace, $mvgIP, $wgHooks, $wgExtensionCredits, $mvMasterStore, |
58 | | - $wgParser, $mvArticlePath, $mvgScriptPath, $wgServer, $wgExtensionFunctions, $markerList,$wgVersion, |
| 58 | + $wgParser, $mvArticlePath, $mvgScriptPath, $wgServer, $markerList, $wgVersion, |
59 | 59 | $wgAjaxExportList, $mvEnableAutoComplete, $mvEnableJSMVDrewrite, |
60 | 60 | $wgAutoloadClasses, $wgSpecialPages, $wgMediaHandlers, $wgJSAutoloadClasses, |
61 | 61 | $wgAPIModules; |
Index: trunk/extensions/Imagetabs/Imagetabs.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | * |
18 | 18 | */ |
19 | 19 | |
20 | | -$wgExtensionFunctions[] = 'createImageTabs_setup'; |
21 | 20 | $wgExtensionCredits['other'][] = array( |
22 | 21 | 'path' => __FILE__, |
23 | 22 | 'name' => 'Imagetabs', |
— | — | @@ -26,10 +25,7 @@ |
27 | 26 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Imagetabs' |
28 | 27 | ); |
29 | 28 | |
30 | | -function createImageTabs_setup() { |
31 | | - global $wgHooks; |
32 | | - $wgHooks['SkinTemplateContentActions'][] = 'createImageTabs_hook'; |
33 | | -} |
| 29 | +$wgHooks['SkinTemplateContentActions'][] = 'createImageTabs_hook'; |
34 | 30 | |
35 | 31 | function createImageTabs_hook(&$content_actions) { |
36 | 32 | global $wgEnableInterwikiImageTabs, $wgInterwikiImageTabs, $wgTitle, $wgLocalInterwiki; |