http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72358

Revision: 72358
Author:   nikerabbit
Date:     2010-09-04 08:32:48 +0000 (Sat, 04 Sep 2010)

Log Message:
-----------
Rename ResourceLoader to something else now that someone else come up with the 
same cool name ;)

Modified Paths:
--------------
    trunk/extensions/Translate/MessageChecks.php
    trunk/extensions/Translate/MessageGroups.php
    trunk/extensions/Translate/_autoload.php
    trunk/extensions/Translate/utils/ResourceLoader.php

Modified: trunk/extensions/Translate/MessageChecks.php
===================================================================
--- trunk/extensions/Translate/MessageChecks.php        2010-09-04 07:54:55 UTC 
(rev 72357)
+++ trunk/extensions/Translate/MessageChecks.php        2010-09-04 08:32:48 UTC 
(rev 72358)
@@ -53,7 +53,7 @@
        public function __construct( MessageGroup $group ) {
                if ( self::$globalBlacklist === null ) {
                        $file = dirname( __FILE__ ) . '/check-blacklist.php';
-                       $list = ResourceLoader::loadVariableFromPHPFile( $file, 
'checkBlacklist' );
+                       $list = PHPVariableLoader::loadVariableFromPHPFile( 
$file, 'checkBlacklist' );
                        $keys = array( 'group', 'check', 'subcheck', 'code', 
'message' );
 
                        foreach ( $list as $key => $pattern ) {

Modified: trunk/extensions/Translate/MessageGroups.php
===================================================================
--- trunk/extensions/Translate/MessageGroups.php        2010-09-04 07:54:55 UTC 
(rev 72357)
+++ trunk/extensions/Translate/MessageGroups.php        2010-09-04 08:32:48 UTC 
(rev 72358)
@@ -330,7 +330,7 @@
                $file = $this->getMessageFileWithPath( $code );
                // Can return null, convert to array.
                $messages = (array) $this->mangler->mangle(
-                       ResourceLoader::loadVariableFromPHPFile( $file, 
'messages' )
+                       PHPVariableLoader::loadVariableFromPHPFile( $file, 
'messages' )
                );
 
                if ( $this->parentId ) {

Modified: trunk/extensions/Translate/_autoload.php
===================================================================
--- trunk/extensions/Translate/_autoload.php    2010-09-04 07:54:55 UTC (rev 
72357)
+++ trunk/extensions/Translate/_autoload.php    2010-09-04 08:32:48 UTC (rev 
72358)
@@ -92,7 +92,7 @@
  * @name   Various utilities
  * @{
  */
-$wgAutoloadClasses['ResourceLoader'] = $dir . 'utils/ResourceLoader.php';
+$wgAutoloadClasses['PHPVariableLoader'] = $dir . 'utils/ResourceLoader.php';
 $wgAutoloadClasses['StringMangler'] = $dir . 'utils/StringMatcher.php';
 $wgAutoloadClasses['StringMatcher'] = $dir . 'utils/StringMatcher.php';
 $wgAutoloadClasses['FCFontFinder'] = $dir . 'utils/Font.php';

Modified: trunk/extensions/Translate/utils/ResourceLoader.php
===================================================================
--- trunk/extensions/Translate/utils/ResourceLoader.php 2010-09-04 07:54:55 UTC 
(rev 72357)
+++ trunk/extensions/Translate/utils/ResourceLoader.php 2010-09-04 08:32:48 UTC 
(rev 72358)
@@ -10,7 +10,7 @@
 /**
  * Stuff for handling configuration files in PHP format.
  */
-class ResourceLoader {
+class PHPVariableLoader {
        /**
         * Returns a global variable from PHP file by executing the file.
         * @param $_filename \string Path to the file.



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to