From: Chad Horohoe Date: Sun, 2 Aug 2009 22:55:33 +0000 (+0000) Subject: (bug 18855) Consistently call commandLine.inc with how we more or less do it now. X-Git-Tag: 1.31.0-rc.0~40555 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=9f649061bf6291e357e64a086872ba13e9300727;p=lhc%2Fweb%2Fwiklou.git (bug 18855) Consistently call commandLine.inc with how we more or less do it now. --- diff --git a/maintenance/language/date-formats.php b/maintenance/language/date-formats.php index 834d2bd8fd..7adccf795d 100644 --- a/maintenance/language/date-formats.php +++ b/maintenance/language/date-formats.php @@ -8,7 +8,7 @@ $ts = '20010115123456'; $IP = dirname( __FILE__ ) . '/../..'; -require_once( "$IP/maintenance/commandLine.inc" ); +require_once( dirname(__FILE__).'/../commandLine.inc' ); foreach ( glob( "$IP/languages/messages/Messages*.php" ) as $filename ) { $base = basename( $filename ); diff --git a/maintenance/language/digit2html.php b/maintenance/language/digit2html.php index b020d8127b..1ac746de6f 100644 --- a/maintenance/language/digit2html.php +++ b/maintenance/language/digit2html.php @@ -4,7 +4,7 @@ * @ingroup MaintenanceLanguage */ -require( '../commandLine.inc' ); +require_once( dirname(__FILE__).'/../commandLine.inc' ); # A list of unicode numerals is available at: # http://www.fileformat.info/info/unicode/category/Nd/list.htm diff --git a/maintenance/preprocessorFuzzTest.php b/maintenance/preprocessorFuzzTest.php index 34960e0133..0569730a4b 100644 --- a/maintenance/preprocessorFuzzTest.php +++ b/maintenance/preprocessorFuzzTest.php @@ -4,7 +4,7 @@ * @ingroup Maintenance */ -require_once( dirname( __FILE__ ). '/../maintenance/commandLine.inc' ); +require_once( 'commandLine.inc' ); $wgHooks['BeforeParserFetchTemplateAndtitle'][] = 'PPFuzzTester::templateHook';