From b80ecd2110af003a02afddc5ec3fc73bb7e6437b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 22 Sep 2004 11:33:56 +0000 Subject: [PATCH] Whoops, typo in making variable name legible. ;) But at least it *ran*. ;) --- includes/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1