From: Brion Vibber Date: Sat, 19 Jan 2008 06:26:39 +0000 (+0000) Subject: Commit ver of doReplace that *doesn't* cause infinite recursion and stack death X-Git-Tag: 1.31.0-rc.0~49912 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=2bd5acda1aa6b6d04c048e050ed4bfa10efff4f4;p=lhc%2Fweb%2Fwiklou.git Commit ver of doReplace that *doesn't* cause infinite recursion and stack death --- diff --git a/includes/SiteConfiguration.php b/includes/SiteConfiguration.php index e1241837f2..19a8e2b2f1 100644 --- a/includes/SiteConfiguration.php +++ b/includes/SiteConfiguration.php @@ -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 {