Changeset 3491


Ignore:
Timestamp:
11/10/10 16:00:58 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1397 - utiliza o template default caso no mobile não exista o template selecionado

Location:
branches/2.2/mobile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/login.php

    r3484 r3491  
    2828        } 
    2929 
    30         $GLOBALS['phpgw_info']['server']['template_set'] = $GLOBALS['phpgw_info']['login_template_set']; 
    3130        $GLOBALS['phpgw']->session = CreateObject('phpgwapi.sessions'); 
    3231        $GLOBALS['phpgw_info']['server']['template_dir'] = PHPGW_SERVER_ROOT.$GLOBALS['phpgw_info']['flags']['currentdir'].'/templates/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']; 
  • branches/2.2/mobile/mobile_header.inc.php

    r623 r3491  
    1818        $GLOBALS['phpgw_info']['flags']['currentapp'] = 'mobile'; 
    1919        $GLOBALS['phpgw_info']['user']['preferences']['common']['default_mobile_app'] = 'mobilemail'; // mobilecalendar, mobilecc ou mobilemail 
     20 
     21        if ( is_null($GLOBALS['phpgw_info']['server']['template_set']) ) 
     22                $GLOBALS['phpgw_info']['server']['template_set'] = $GLOBALS['phpgw_info']['login_template_set']; 
     23        if ( !file_exists( PHPGW_SERVER_ROOT . '/mobile/templates/'.$GLOBALS['phpgw_info']['server']['template_set'] ) ) 
     24                $GLOBALS['phpgw_info']['server']['template_set'] = 'default'; 
    2025 
    2126        /* 
Note: See TracChangeset for help on using the changeset viewer.