r66938 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66937‎ | r66938 | r66939 >
Date:23:39, 26 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
dirname( __FILE__ ) is better then using a global
Modified paths:
  • /trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.php
@@ -27,9 +27,8 @@
2828 $wgHooks['smwUpdatePropertySubjects'][] = 'SIOHandler::handleUpdatingOfInternalObjects';
2929 $wgHooks['smwRefreshDataJobs'][] = 'SIOHandler::handleRefreshingOfInternalObjects';
3030
31 -$siogIP = $IP . '/extensions/SemanticInternalObjects';
32 -$wgExtensionMessagesFiles['SemanticInternalObjects'] = $siogIP . '/SemanticInternalObjects.i18n.php';
33 -$wgAutoloadClasses['SIOHandler'] = $siogIP . '/SemanticInternalObjects_body.php';
 31+$wgExtensionMessagesFiles['SemanticInternalObjects'] = dirname( __FILE__ ) . '/SemanticInternalObjects.i18n.php';
 32+$wgAutoloadClasses['SIOHandler'] = dirname( __FILE__ ) . '/SemanticInternalObjects_body.php';
3433
3534 function siofRegisterParserFunctions( &$parser ) {
3635 $parser->setFunctionHook( 'set_internal', array( 'SIOHandler', 'doSetInternal' ) );

Status & tagging log