r84750 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84749‎ | r84750 | r84751 >
Date:15:23, 25 March 2011
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Removed some useless extension
Modified paths:
  • /trunk/extensions/Blahtex/Blahtex.php (modified) (history)
  • /trunk/extensions/BlockTitles/BlockTitles.php (modified) (history)
  • /trunk/extensions/CommentSpammer/CommentSpammer.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Blahtex/Blahtex.php
@@ -24,7 +24,6 @@
2525
2626 /* Register the extension */
2727
28 -$wgExtensionFunctions[] = 'efBlahtex';
2928 $wgExtensionCredits['other'][] = array(
3029 'path' => __FILE__,
3130 'name' => 'Blahtex',
@@ -36,16 +35,9 @@
3736 $dir = dirname( __FILE__ ) . '/';
3837 $wgExtensionMessagesFiles['Blahtex'] = $dir . 'Blahtex.i18n.php';
3938
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';
5042
5143 /**
5244 * Hook function for MathAfterTexvc
Index: trunk/extensions/CommentSpammer/CommentSpammer.php
@@ -14,7 +14,6 @@
1515 die( 'This is only valid as a MediaWiki extension' );
1616 }
1717
18 -$wgExtensionFunctions[] = 'efCommentSpammer';
1918 $wgExtensionCredits['other'][] = array(
2019 'path' => __FILE__,
2120 'name' => 'CommentSpammer',
@@ -26,10 +25,6 @@
2726 $dir = dirname(__FILE__) . '/';
2827 $wgExtensionMessagesFiles['CommentSpammer'] = $dir . 'CommentSpammer.i18n.php';
2928
30 -function efCommentSpammer() {
31 -
32 -}
33 -
3429 /**
3530 * Add the hook on which we trigger.
3631 */
Index: trunk/extensions/BlockTitles/BlockTitles.php
@@ -16,7 +16,6 @@
1717 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1818 */
1919
20 -$wgExtensionFunctions[] = 'wfBlockTitles';
2120 $wgExtensionCredits['other'][] = array(
2221 'path' => __FILE__,
2322 'name' => 'BlockTitles',
@@ -34,10 +33,6 @@
3534
3635 $wgHooks['ArticleSave'][] = 'wfCheckBlockTitles';
3736
38 -function wfBlockTitles() {
39 -
40 -}
41 -
4237 function wfCheckBlockTitles ( &$article ) {
4338 global $wgBlockTitlePatterns;
4439 global $wgOut;

Comments

#Comment by 😂 (talk | contribs)   15:25, 25 March 2011

...functions?

Status & tagging log