Index: trunk/extensions/AmazonPlus/AmazonPlus.php |
— | — | @@ -66,12 +66,7 @@ |
67 | 67 | |
68 | 68 | $wgExtensionMessagesFiles['AmazonPlus'] = dirname( __FILE__ ) . '/AmazonPlus.i18n.php'; |
69 | 69 | |
70 | | -if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
71 | | - $wgHooks['ParserFirstCallInit'][] = 'efAmazonPlusSetup'; |
72 | | -} else { |
73 | | - $wgExtensionFunctions[] = 'efAmazonPlusSetup'; |
74 | | -} |
75 | | - |
| 70 | +$wgHooks['ParserFirstCallInit'][] = 'efAmazonPlusSetup'; |
76 | 71 | $wgHooks['BeforePageDisplay'][] = 'efAmazonPlusJavascript'; |
77 | 72 | |
78 | 73 | $wgAmazonPlusJSVersion = 1; # Bump the version number every time you change AmazonPlus.js |
Index: trunk/extensions/FBConnect/FBConnect.php |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | /* |
46 | 46 | * FBConnect version. |
47 | 47 | */ |
48 | | -define( 'MEDIAWIKI_FBCONNECT_VERSION', '2.0.2' ); |
| 48 | +define( 'MEDIAWIKI_FBCONNECT_VERSION', '2.1.0' ); |
49 | 49 | |
50 | 50 | /* |
51 | 51 | * Add information about this extension to Special:Version. |
— | — | @@ -153,13 +153,6 @@ |
154 | 154 | } else { |
155 | 155 | self::$fbOnLoginJs = "window.location.reload(true);"; |
156 | 156 | } |
157 | | - |
158 | | - // ParserFirstCallInit was introduced in modern (1.12+) MW versions so as to |
159 | | - // avoid unstubbing $wgParser on setHook() too early, as per r35980 |
160 | | - if (!defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' )) { |
161 | | - global $wgParser; |
162 | | - wfRunHooks( 'ParserFirstCallInit', $wgParser ); |
163 | | - } |
164 | 157 | } |
165 | 158 | |
166 | 159 | /** |
Index: trunk/extensions/SlippyMap/SlippyMap.php |
— | — | @@ -47,12 +47,7 @@ |
48 | 48 | $wgParserTestFiles[] = $dir . '/slippyMapParserTests.txt'; |
49 | 49 | |
50 | 50 | /* Parser hook */ |
51 | | -if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
52 | | - $wgHooks['ParserFirstCallInit'][] = 'wfSlippyMapHook'; |
53 | | -} else { |
54 | | - // Legacy support |
55 | | - $wgExtensionFunctions[] = 'wfSlippyMapHook'; |
56 | | -} |
| 51 | +$wgHooks['ParserFirstCallInit'][] = 'wfSlippyMapHook'; |
57 | 52 | |
58 | 53 | function wfSlippyMapHook() { |
59 | 54 | new SlippyMapHook; |
— | — | @@ -156,4 +151,3 @@ |
157 | 152 | * see see the static map and nothing else. |
158 | 153 | */ |
159 | 154 | $wgSlippyMapAutoLoadMaps = false; |
160 | | - |
Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php |
— | — | @@ -26,7 +26,6 @@ |
27 | 27 | define( 'SF_SP_HAS_FIELD_LABEL_FORMAT', 5 ); |
28 | 28 | |
29 | 29 | $wgExtensionFunctions[] = 'sfgSetupExtension'; |
30 | | -$wgExtensionFunctions[] = 'sfgParserFunctions'; |
31 | 30 | |
32 | 31 | // FIXME: Can be removed when new style magic words are used (introduced in r52503) |
33 | 32 | $wgHooks['LanguageGetMagic'][] = 'SFParserFunctions::languageGetMagic'; |
— | — | @@ -42,6 +41,7 @@ |
43 | 42 | $wgHooks['smwInitProperties'][] = 'SFUtils::initProperties'; |
44 | 43 | $wgHooks['AdminLinks'][] = 'sffAddToAdminLinks'; |
45 | 44 | $wgHooks['ParserBeforeStrip'][] = 'SFUtils::cacheFormDefinition'; |
| 45 | +$wgHooks['ParserFirstCallInit'][] = 'SFParserFunctions::registerFunctions'; |
46 | 46 | |
47 | 47 | $wgAPIModules['sfautocomplete'] = 'SFAutocompleteAPI'; |
48 | 48 | |
— | — | @@ -116,18 +116,6 @@ |
117 | 117 | $sfgFormPrinter = new StubObject( 'sfgFormPrinter', 'SFFormPrinter' ); |
118 | 118 | } |
119 | 119 | |
120 | | -function sfgParserFunctions() { |
121 | | - global $wgHooks, $wgParser; |
122 | | - if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
123 | | - $wgHooks['ParserFirstCallInit'][] = 'SFParserFunctions::registerFunctions'; |
124 | | - } else { |
125 | | - if ( class_exists( 'StubObject' ) && !StubObject::isRealObject( $wgParser ) ) { |
126 | | - $wgParser->_unstub(); |
127 | | - } |
128 | | - SFParserFunctions::registerFunctions( $wgParser ); |
129 | | - } |
130 | | -} |
131 | | - |
132 | 120 | /**********************************************/ |
133 | 121 | /***** namespace settings *****/ |
134 | 122 | /**********************************************/ |
Index: trunk/extensions/DonationInterface/activemq_stomp/activemq_stomp.php |
— | — | @@ -23,13 +23,8 @@ |
24 | 24 | //default variables that should be set in LocalSettings |
25 | 25 | $wgStompServer = ""; |
26 | 26 | |
27 | | -if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
28 | | - $wgHooks['ParserFirstCallInit'][] = 'efStompSetup'; |
29 | | -} else { // Otherwise do things the old fashioned way |
30 | | - $wgExtensionFunctions[] = 'efStompSetup'; |
31 | | -} |
| 27 | +$wgHooks['ParserFirstCallInit'][] = 'efStompSetup'; |
32 | 28 | |
33 | | - |
34 | 29 | /* |
35 | 30 | * Create <donate /> tag to include landing page donation form |
36 | 31 | */ |
Index: trunk/extensions/Cite/Cite.php |
— | — | @@ -17,11 +17,7 @@ |
18 | 18 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
19 | 19 | */ |
20 | 20 | |
21 | | -if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
22 | | - $wgHooks['ParserFirstCallInit'][] = 'wfCite'; |
23 | | -} else { |
24 | | - $wgExtensionFunctions[] = 'wfCite'; |
25 | | -} |
| 21 | +$wgHooks['ParserFirstCallInit'][] = 'wfCite'; |
26 | 22 | |
27 | 23 | $wgExtensionCredits['parserhook'][] = array( |
28 | 24 | 'path' => __FILE__, |
— | — | @@ -53,4 +49,3 @@ |
54 | 50 | } |
55 | 51 | |
56 | 52 | /**#@-*/ |
57 | | - |
Index: trunk/extensions/HideNamespace/HideNamespace.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | 'name' => "HideNamespace", |
28 | 28 | 'description' => "Hides namespace in the header and title when a page is in specified namespace or when the <code><nowiki>{{#hidens:}}</nowiki></code> parser function is called.", |
29 | 29 | 'descriptionmsg' => "hidens-desc", |
30 | | - 'version' => "1.3", |
| 30 | + 'version' => "1.4", |
31 | 31 | 'author' => 'Matěj Grabovský', |
32 | 32 | 'url' => "http://www.mediawiki.org/wiki/Extension:HideNamespace", |
33 | 33 | ); |
— | — | @@ -39,18 +39,7 @@ |
40 | 40 | // Register hooks |
41 | 41 | $wgHooks['ArticleViewHeader'][] = array( $extHidensObj, 'onArticleViewHeader' ); |
42 | 42 | $wgHooks['BeforePageDisplay'][] = array( $extHidensObj, 'onBeforePageDisplay' ); |
43 | | - |
44 | | - // If we support ParserFirstCallInit, hook our function to register PF hooks with it |
45 | | - if( defined('MW_SUPPORTS_PARSERFIRSTCALLINIT') ) { |
46 | | - $wgHooks['ParserFirstCallInit'][] = array( $extHidensObj, 'RegisterParser' ); |
47 | | - |
48 | | - // Else manualy unstub Parser and call our function |
49 | | - } else { |
50 | | - if( class_exists( 'StubObject' ) && !StubObject::isRealObject( $wgParser ) ) { |
51 | | - $wgParser->_unstub(); |
52 | | - } |
53 | | - $extHidensObj->RegisterParser( $wgParser ); |
54 | | - } |
| 43 | + $wgHooks['ParserFirstCallInit'][] = array( $extHidensObj, 'RegisterParser' ); |
55 | 44 | } |
56 | 45 | |
57 | 46 | class ExtensionHideNamespace { |
Index: trunk/extensions/ConditionalShowSection/ConditionalShowSection.php |
— | — | @@ -32,11 +32,7 @@ |
33 | 33 | $dir = dirname( __FILE__ ) . '/'; |
34 | 34 | $wgExtensionMessagesFiles['ConditionalShowSection'] = $dir . 'ConditionalShowSection.i18n.php'; |
35 | 35 | |
36 | | -if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
37 | | - $wgHooks['ParserFirstCallInit'][] = 'wfConditionalShowSection'; |
38 | | -} else { // Otherwise do things the old fashioned way |
39 | | - $wgExtensionFunctions[] = 'wfConditionalShowSection'; |
40 | | -} |
| 36 | +$wgHooks['ParserFirstCallInit'][] = 'wfConditionalShowSection'; |
41 | 37 | |
42 | 38 | function wfConditionalShowSection() { |
43 | 39 | global $wgParser; |
Index: trunk/extensions/ConditionalShowSection/README |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | |imagesize = |
39 | 39 | |version = 1.5 |
40 | 40 | |update = 2009-09-10 |
41 | | -|mediawiki = tested on 1.8.2, 1.9.3, 1.10, 1.14, 1.15, 1.16A |
| 41 | +|mediawiki = tested on 1.14, 1.15, 1.16A |
42 | 42 | |php = |
43 | 43 | |license = GNU General Public Licence 2.0 |
44 | 44 | |download = [http://wiki.jldupont.com/Extension:ConditionalContent http version <1.5] |