gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/common/include User.class,1.31,1.32


From: cbayle
Subject: [Gforge-commits] gforge/common/include User.class,1.31,1.32
Date: Fri, 16 Apr 2004 06:34:14 -0500

Update of /cvsroot/gforge/gforge/common/include
In directory db.perdue.net:/tmp/cvs-serv9632/common/include

Modified Files:
        User.class 
Log Message:
Test if Theme.class is really there, keep the default of local.inc if not


Index: User.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/include/User.class,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- User.class  8 Apr 2004 20:03:29 -0000       1.31
+++ User.class  16 Apr 2004 11:34:12 -0000      1.32
@@ -1272,10 +1272,13 @@
                if (!$this->data_array['dirname']) {
                        $res=db_query("SELECT dirname FROM themes WHERE 
theme_id='".$this->getThemeID()."'");
                        $this->theme=db_result($res,0,'dirname');
-                       $GLOBALS['sys_theme']=$this->theme;
                } else {
                        $this->theme=$this->data_array['dirname'];
+               }
+               if 
(is_file($GLOBALS['sys_themeroot'].$this->theme.'/Theme.class')) {
                        $GLOBALS['sys_theme']=$this->theme;
+               } else {
+                       $this->theme=$GLOBALS['sys_theme'];
                }
                return $this->theme;
        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]