From 7083f65b2e25b69f13c7ff122b2a1b48a1aa9faf Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 19 Sep 2004 22:59:23 +0000 Subject: [PATCH] Die horribly if a skin class doesn't exist. Will help skins builders. --- includes/User.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/User.php b/includes/User.php index 82323a8c1c..332c6fce40 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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' ); } -- 2.20.1