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

Resolve #475

Location:
sandbox/expresso/novos_templates
Files:
1 edited
1 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                                } 
Note: See TracChangeset for help on using the changeset viewer.