http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69053
Revision: 69053
Author: nikerabbit
Date: 2010-07-05 12:49:36 +0000 (Mon, 05 Jul 2010)
Log Message:
-----------
Fixed a bug while using autoload section from yaml configuration
Caused by a variable name collision with loop parameter.
Modified Paths:
--------------
trunk/extensions/Translate/MessageGroups.php
Modified: trunk/extensions/Translate/MessageGroups.php
===================================================================
--- trunk/extensions/Translate/MessageGroups.php 2010-07-05 12:48:22 UTC
(rev 69052)
+++ trunk/extensions/Translate/MessageGroups.php 2010-07-05 12:49:36 UTC
(rev 69053)
@@ -845,13 +845,13 @@
global $wgTranslateGroupFiles, $wgAutoloadClasses;
- foreach ( $wgTranslateGroupFiles as $file ) {
- wfDebug( $file . "\n" );
- $fgroups = TranslateYaml::parseGroupFile( $file );
+ foreach ( $wgTranslateGroupFiles as $configFile ) {
+ wfDebug( $configFile . "\n" );
+ $fgroups = TranslateYaml::parseGroupFile( $configFile );
foreach( $fgroups as $id => $conf ) {
if ( !empty( $conf['AUTOLOAD'] ) && is_array(
$conf['AUTOLOAD'] ) ) {
- $dir = dirname( $file );
+ $dir = dirname( $configFile );
foreach ( $conf['AUTOLOAD'] as $class
=> $file ) {
$wgAutoloadClasses[$class] =
"$dir/$file";
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs