Ignore:
Timestamp:
05/05/09 15:52:22 (15 years ago)
Author:
niltonneto
Message:

Ticket #475 - Modificação para tornar flexível a utilização de múltiplos templates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/functions.inc.php

    r440 r790  
    385385                { 
    386386                        $GLOBALS['phpgw']->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 
     387                        preg_match('/(.*)\/(.*)/', PHPGW_APP_TPL, $matches); 
     388 
     389                        if ($GLOBALS['phpgw_info']['flags']['currentapp'] != "jabberit_messenger") 
     390                        $_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user']['preferences']['common']['template_set'] = $matches[2]; 
    387391                } 
    388392 
Note: See TracChangeset for help on using the changeset viewer.