Whoops, typo in making variable name legible. ;)
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 22 Sep 2004 11:33:56 +0000 (11:33 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 22 Sep 2004 11:33:56 +0000 (11:33 +0000)
But at least it *ran*. ;)

includes/User.php

index c474ae3..0d87829 100644 (file)
@@ -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;
        }