Ignore:
Timestamp:
04/28/09 17:15:52 (15 years ago)
Author:
niltonneto
Message:

Resolve #475

Location:
sandbox/expresso/novos_templates
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • sandbox/expresso/novos_templates

    • Property svn:ignore set to
      header.inc.php
      .svnignore
  • sandbox/expresso/novos_templates/phpgwapi/inc/class.common.inc.php

    r368 r773  
    736736                        while ($entry=$d->read()) 
    737737                        { 
    738                                 if ($entry != 'CVS' && $entry != '.' && $entry != '..' 
    739                                         && $entry != 'phpgw_website' 
    740                                         && is_dir(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry)) 
    741                                 { 
     738                                if ($entry != '.' && $entry != '..' && is_dir(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry) && file_exists(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/head.inc.php')) 
     739                                { 
     740                                        $list[$entry]['title'] = $entry; 
    742741                                        $list[$entry]['name'] = $entry; 
     742 
    743743                                        $f = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/details.inc.php'; 
    744744                                        if (file_exists ($f)) 
    745745                                        { 
    746746                                                include($f); 
    747                                                 $list[$entry]['title'] = 'Use '.$GLOBALS['phpgw_info']['template'][$entry]['title'].'interface'; 
    748                                         } 
    749                                         else 
    750                                         { 
    751                                                 $list[$entry]['title'] = $entry; 
     747                                                if ( defined( $entry.'_TEMPLATE_TITLE' ) ) 
     748                                                        $list[$entry]['title'] = utf8_decode( constant($entry.'_TEMPLATE_TITLE') ); 
    752749                                        } 
    753750                                } 
  • sandbox/expresso/novos_templates/phpgwapi/inc/functions.inc.php

    r440 r773  
    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.