r74270 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74269‎ | r74270 | r74271 >
Date:20:08, 4 October 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Removed registration of unneeded parser functions
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php
@@ -110,12 +110,7 @@
111111
112112 // Parser hooks
113113 $phDir = $smwgIP . 'includes/parserhooks/';
114 - $wgAutoloadClasses['SMWAsk'] = $phDir . 'SMW_Ask.php';
115 - $wgAutoloadClasses['SMWShow'] = $phDir . 'SMW_Show.php';
116 - $wgAutoloadClasses['SMWInfo'] = $phDir . 'SMW_Info.php';
117 - $wgAutoloadClasses['SMWConcept'] = $phDir . 'SMW_Concept.php';
118114 $wgAutoloadClasses['SMWSet'] = $phDir . 'SMW_Set.php';
119 - $wgAutoloadClasses['SMWSetRecurringEvent'] = $phDir . 'SMW_SetRecurringEvent.php';
120115 $wgAutoloadClasses['SMWDeclare'] = $phDir . 'SMW_Declare.php';
121116
122117 // Stores & queries
@@ -475,12 +470,7 @@
476471 * @since 1.5.3
477472 */
478473 function smwfRegisterParserFunctions( Parser &$parser ) {
479 - $parser->setFunctionHook( 'ask', array( 'SMWAsk', 'render' ) );
480 - $parser->setFunctionHook( 'show', array( 'SMWShow', 'render' ) );
481 - $parser->setFunctionHook( 'info', array( 'SMWInfo', 'render' ) );
482 - $parser->setFunctionHook( 'concept', array( 'SMWConcept', 'render' ) );
483474 $parser->setFunctionHook( 'set', array( 'SMWSet', 'render' ) );
484 - $parser->setFunctionHook( 'set_recurring_event', array( 'SMWSetRecurringEvent', 'render' ) );
485475 $parser->setFunctionHook( 'declare', array( 'SMWDeclare', 'render' ), SFH_OBJECT_ARGS );
486476
487477 return true; // Always return true, in order not to stop MW's hook processing!

Status & tagging log