Index: trunk/extensions/Translate/MessageChecks.php |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | public function __construct( MessageGroup $group ) { |
55 | 55 | if ( self::$globalBlacklist === null ) { |
56 | 56 | $file = dirname( __FILE__ ) . '/check-blacklist.php'; |
57 | | - $list = ResourceLoader::loadVariableFromPHPFile( $file, 'checkBlacklist' ); |
| 57 | + $list = PHPVariableLoader::loadVariableFromPHPFile( $file, 'checkBlacklist' ); |
58 | 58 | $keys = array( 'group', 'check', 'subcheck', 'code', 'message' ); |
59 | 59 | |
60 | 60 | foreach ( $list as $key => $pattern ) { |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -330,7 +330,7 @@ |
331 | 331 | $file = $this->getMessageFileWithPath( $code ); |
332 | 332 | // Can return null, convert to array. |
333 | 333 | $messages = (array) $this->mangler->mangle( |
334 | | - ResourceLoader::loadVariableFromPHPFile( $file, 'messages' ) |
| 334 | + PHPVariableLoader::loadVariableFromPHPFile( $file, 'messages' ) |
335 | 335 | ); |
336 | 336 | |
337 | 337 | if ( $this->parentId ) { |
Index: trunk/extensions/Translate/_autoload.php |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | * @name Various utilities |
94 | 94 | * @{ |
95 | 95 | */ |
96 | | -$wgAutoloadClasses['ResourceLoader'] = $dir . 'utils/ResourceLoader.php'; |
| 96 | +$wgAutoloadClasses['PHPVariableLoader'] = $dir . 'utils/ResourceLoader.php'; |
97 | 97 | $wgAutoloadClasses['StringMangler'] = $dir . 'utils/StringMatcher.php'; |
98 | 98 | $wgAutoloadClasses['StringMatcher'] = $dir . 'utils/StringMatcher.php'; |
99 | 99 | $wgAutoloadClasses['FCFontFinder'] = $dir . 'utils/Font.php'; |
Index: trunk/extensions/Translate/utils/ResourceLoader.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | /** |
12 | 12 | * Stuff for handling configuration files in PHP format. |
13 | 13 | */ |
14 | | -class ResourceLoader { |
| 14 | +class PHPVariableLoader { |
15 | 15 | /** |
16 | 16 | * Returns a global variable from PHP file by executing the file. |
17 | 17 | * @param $_filename \string Path to the file. |