summaryrefslogtreecommitdiff
path: root/extensions/LocalisationUpdate/Autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/LocalisationUpdate/Autoload.php')
-rw-r--r--extensions/LocalisationUpdate/Autoload.php35
1 files changed, 16 insertions, 19 deletions
diff --git a/extensions/LocalisationUpdate/Autoload.php b/extensions/LocalisationUpdate/Autoload.php
index 0b3f14dc..8be7124a 100644
--- a/extensions/LocalisationUpdate/Autoload.php
+++ b/extensions/LocalisationUpdate/Autoload.php
@@ -5,27 +5,24 @@
* @license GPL-2.0+
*/
-global $wgAutoloadClasses;
$dir = __DIR__;
-$wgAutoloadClasses += array(
- 'LocalisationUpdate' => "$dir/LocalisationUpdate.class.php",
- 'LU_Updater' => "$dir/Updater.php",
- 'QuickArrayReader' => "$dir/QuickArrayReader.php",
+$GLOBALS['wgAutoloadClasses']['LocalisationUpdate'] = "$dir/LocalisationUpdate.class.php";
+$GLOBALS['wgAutoloadClasses']['LU_Updater'] = "$dir/Updater.php";
+$GLOBALS['wgAutoloadClasses']['QuickArrayReader'] = "$dir/QuickArrayReader.php";
- # fetcher
- 'LU_Fetcher' => "$dir/fetcher/Fetcher.php",
- 'LU_FetcherFactory' => "$dir/fetcher/FetcherFactory.php",
- 'LU_FileSystemFetcher' => "$dir/fetcher/FileSystemFetcher.php",
- 'LU_GitHubFetcher' => "$dir/fetcher/GitHubFetcher.php",
- 'LU_HttpFetcher' => "$dir/fetcher/HttpFetcher.php",
+# fetcher
+$GLOBALS['wgAutoloadClasses']['LU_Fetcher'] = "$dir/fetcher/Fetcher.php";
+$GLOBALS['wgAutoloadClasses']['LU_FetcherFactory'] = "$dir/fetcher/FetcherFactory.php";
+$GLOBALS['wgAutoloadClasses']['LU_FileSystemFetcher'] = "$dir/fetcher/FileSystemFetcher.php";
+$GLOBALS['wgAutoloadClasses']['LU_GitHubFetcher'] = "$dir/fetcher/GitHubFetcher.php";
+$GLOBALS['wgAutoloadClasses']['LU_HttpFetcher'] = "$dir/fetcher/HttpFetcher.php";
- # finder
- 'LU_Finder' => "$dir/finder/Finder.php",
+# finder
+$GLOBALS['wgAutoloadClasses']['LU_Finder'] = "$dir/finder/Finder.php";
- # reader
- 'LU_JSONReader' => "$dir/reader/JSONReader.php",
- 'LU_PHPReader' => "$dir/reader/PHPReader.php",
- 'LU_Reader' => "$dir/reader/Reader.php",
- 'LU_ReaderFactory' => "$dir/reader/ReaderFactory.php",
-);
+# reader
+$GLOBALS['wgAutoloadClasses']['LU_JSONReader'] = "$dir/reader/JSONReader.php";
+$GLOBALS['wgAutoloadClasses']['LU_PHPReader'] = "$dir/reader/PHPReader.php";
+$GLOBALS['wgAutoloadClasses']['LU_Reader'] = "$dir/reader/Reader.php";
+$GLOBALS['wgAutoloadClasses']['LU_ReaderFactory'] = "$dir/reader/ReaderFactory.php";