From: x2000habouzit Date: Wed, 24 Nov 2004 10:19:48 +0000 (+0000) Subject: like that, skin is REALLY independant X-Git-Tag: xorg/old~806 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=6b1713a91d83721a62fcc7ab8f3aa5cdf6d04b37;p=platal.git like that, skin is REALLY independant --- diff --git a/include/xorg/session.inc.php b/include/xorg/session.inc.php index 5dadc48..d11b2ca 100644 --- a/include/xorg/session.inc.php +++ b/include/xorg/session.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: session.inc.php,v 1.5 2004-11-23 11:38:44 x2000habouzit Exp $ + $Id: session.inc.php,v 1.6 2004-11-24 10:19:48 x2000habouzit Exp $ ***************************************************************************/ require_once("diogenes.core.session.inc.php"); @@ -350,9 +350,12 @@ function set_skin() $_SESSION['skin_id'] = $globals->skin->def_id; } mysql_free_result($result); - } else { + } elseif ($globals->skin->enable) { $_SESSION['skin'] = $globals->skin->def_tpl; $_SESSION['skin_id'] = $globals->skin->def_id; + } else { + $_SESSION['skin'] = 'default.tpl'; + $_SESSION['skin_id'] = -1; } }