From 9f649061bf6291e357e64a086872ba13e9300727 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sun, 2 Aug 2009 22:55:33 +0000 Subject: [PATCH] (bug 18855) Consistently call commandLine.inc with how we more or less do it now. --- maintenance/language/date-formats.php | 2 +- maintenance/language/digit2html.php | 2 +- maintenance/preprocessorFuzzTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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'; -- 2.20.1