Commit ver of doReplace that *doesn't* cause infinite recursion and stack death
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 19 Jan 2008 06:26:39 +0000 (06:26 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 19 Jan 2008 06:26:39 +0000 (06:26 +0000)
includes/SiteConfiguration.php

index e124183..19a8e2b 100644 (file)
@@ -48,7 +48,7 @@ class SiteConfiguration {
                        return str_replace( $from, $to, $in );
                } elseif( is_array( $in ) ) {
                        foreach( $in as $key => $val ) {
-                               $in[$key] = $this->doReplace( $from, $to, $in );
+                               $in[$key] = $this->doReplace( $from, $to, $val );
                        }
                        return $in;
                } else {