r5308 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5307‎ | r5308 | r5309 >
Date:22:59, 19 September 2004
Author:hashar
Status:old
Tags:
Comment:
Die horribly if a skin class doesn't exist. Will help skins builders.
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -583,8 +583,9 @@
584584 # Check if we got if not failback to default skin
585585 $sn = 'Skin'.$sn;
586586 if(!class_exists($sn)) {
587 - #FIXME : should we print an error message instead of loading
588 - # standard skin ?
 587+ # FIXME : should we print an error message instead of loading
 588+ # standard skin ? Let's die for now. [AV]
 589+ die("Class $sn doesn't exist in $IP/skins/$sn.php");
589590 $sn = 'SkinStandard';
590591 require_once( $IP.'/skins/Standard.php' );
591592 }

Status & tagging log