From: Brion Vibber Date: Wed, 22 Sep 2004 11:33:56 +0000 (+0000) Subject: Whoops, typo in making variable name legible. ;) X-Git-Tag: 1.5.0alpha1~1885 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=b80ecd2110af003a02afddc5ec3fc73bb7e6437b;p=lhc%2Fweb%2Fwiklou.git Whoops, typo in making variable name legible. ;) But at least it *ran*. ;) --- diff --git a/includes/User.php b/includes/User.php index c474ae37de..0d87829f2c 100644 --- a/includes/User.php +++ b/includes/User.php @@ -583,7 +583,7 @@ class User { # Check if we got if not failback to default skin $className = 'Skin'.$sn; - if( !class_exists( $ClassName ) ) { + if( !class_exists( $className ) ) { # DO NOT die if the class isn't found. This breaks maintenance # scripts and can cause a user account to be unrecoverable # except by SQL manipulation if a previously valid skin name @@ -591,7 +591,7 @@ class User { $sn = 'SkinStandard'; require_once( $IP.'/skins/Standard.php' ); } - $this->mSkin = new $sn; + $this->mSkin = new $className; } return $this->mSkin; }