Changeset 3552


Ignore:
Timestamp:
11/30/10 09:41:08 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1421 - somente incluir default.theme se <tema>.theme não existir.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/phpgwapi/inc/functions.inc.php

    r3410 r3552  
    394394 
    395395 
    396                 if(!include(PHPGW_SERVER_ROOT . '/phpgwapi/themes/default.theme'))   
    397                 {   
    398                         /* Hope we don't get to this point.  Better then the user seeing a */   
    399                         /* complety back screen and not know whats going on                */   
    400                         echo '<body bgcolor="FFFFFF">';   
    401                         $GLOBALS['phpgw']->log->write(array('text'=>'F-Abort, No themes found'));   
    402  
    403                         exit;   
    404                 }   
     396                if (!include(PHPGW_SERVER_ROOT . '/phpgwapi/themes/' . get_theme() . '.theme')) 
     397                { 
     398                        if(!include(PHPGW_SERVER_ROOT . '/phpgwapi/themes/default.theme')) 
     399                        { 
     400                                /* Hope we don't get to this point.  Better then the user seeing a */ 
     401                                /* complety back screen and not know whats going on                */ 
     402                                echo '<body bgcolor="FFFFFF">'; 
     403                                $GLOBALS['phpgw']->log->write(array('text'=>'F-Abort, No themes found')); 
     404 
     405                                exit; 
     406                        } 
     407                } 
    405408 
    406409                /*************************************************************************\ 
Note: See TracChangeset for help on using the changeset viewer.