Die horribly if a skin class doesn't exist. Will help skins builders.
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 19 Sep 2004 22:59:23 +0000 (22:59 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 19 Sep 2004 22:59:23 +0000 (22:59 +0000)
includes/User.php

index 82323a8..332c6fc 100644 (file)
@@ -583,8 +583,9 @@ class User {
                        # Check if we got if not failback to default skin
                        $sn = 'Skin'.$sn;
                        if(!class_exists($sn)) {
-                               #FIXME : should we print an error message instead of loading
-                               # standard skin ?
+                               # FIXME : should we print an error message instead of loading
+                               # standard skin ? Let's die for now. [AV]
+                               die("Class $sn doesn't exist in $IP/skins/$sn.php");
                                $sn = 'SkinStandard';
                                require_once( $IP.'/skins/Standard.php' );
                        }