Index: trunk/extensions/Blahtex/Blahtex.php |
— | — | @@ -24,7 +24,6 @@ |
25 | 25 | |
26 | 26 | /* Register the extension */ |
27 | 27 | |
28 | | -$wgExtensionFunctions[] = 'efBlahtex'; |
29 | 28 | $wgExtensionCredits['other'][] = array( |
30 | 29 | 'path' => __FILE__, |
31 | 30 | 'name' => 'Blahtex', |
— | — | @@ -36,16 +35,9 @@ |
37 | 36 | $dir = dirname( __FILE__ ) . '/'; |
38 | 37 | $wgExtensionMessagesFiles['Blahtex'] = $dir . 'Blahtex.i18n.php'; |
39 | 38 | |
40 | | -/** |
41 | | - * Initialize Blahtex |
42 | | - */ |
43 | | -function efBlahtex() { |
44 | | - global $wgHooks; |
45 | | - $wgHooks['MathAfterTexvc'][] = 'efBlahtexMathAfterTexvc'; |
46 | | - $wgHooks['ParserBeforeTidy'][] = 'efBlahtexParserBeforeTidy'; |
47 | | - $wgHooks['ParserAfterTidy'][] = 'efBlahtexParserAfterTidy'; |
48 | | - |
49 | | -} |
| 39 | +$wgHooks['MathAfterTexvc'][] = 'efBlahtexMathAfterTexvc'; |
| 40 | +$wgHooks['ParserBeforeTidy'][] = 'efBlahtexParserBeforeTidy'; |
| 41 | +$wgHooks['ParserAfterTidy'][] = 'efBlahtexParserAfterTidy'; |
50 | 42 | |
51 | 43 | /** |
52 | 44 | * Hook function for MathAfterTexvc |
Index: trunk/extensions/CommentSpammer/CommentSpammer.php |
— | — | @@ -14,7 +14,6 @@ |
15 | 15 | die( 'This is only valid as a MediaWiki extension' ); |
16 | 16 | } |
17 | 17 | |
18 | | -$wgExtensionFunctions[] = 'efCommentSpammer'; |
19 | 18 | $wgExtensionCredits['other'][] = array( |
20 | 19 | 'path' => __FILE__, |
21 | 20 | 'name' => 'CommentSpammer', |
— | — | @@ -26,10 +25,6 @@ |
27 | 26 | $dir = dirname(__FILE__) . '/'; |
28 | 27 | $wgExtensionMessagesFiles['CommentSpammer'] = $dir . 'CommentSpammer.i18n.php'; |
29 | 28 | |
30 | | -function efCommentSpammer() { |
31 | | - |
32 | | -} |
33 | | - |
34 | 29 | /** |
35 | 30 | * Add the hook on which we trigger. |
36 | 31 | */ |
Index: trunk/extensions/BlockTitles/BlockTitles.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
18 | 18 | */ |
19 | 19 | |
20 | | -$wgExtensionFunctions[] = 'wfBlockTitles'; |
21 | 20 | $wgExtensionCredits['other'][] = array( |
22 | 21 | 'path' => __FILE__, |
23 | 22 | 'name' => 'BlockTitles', |
— | — | @@ -34,10 +33,6 @@ |
35 | 34 | |
36 | 35 | $wgHooks['ArticleSave'][] = 'wfCheckBlockTitles'; |
37 | 36 | |
38 | | -function wfBlockTitles() { |
39 | | - |
40 | | -} |
41 | | - |
42 | 37 | function wfCheckBlockTitles ( &$article ) { |
43 | 38 | global $wgBlockTitlePatterns; |
44 | 39 | global $wgOut; |