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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.