includes/template.php
changeset 843 4415e50e4e84
parent 832 7152ca0a0ce9
child 848 b33241a7cc28
equal deleted inserted replaced
842:f13bb4f21890 843:4415e50e4e84
  1497     {
  1497     {
  1498       die('$template->extract_vars(): theme not yet loaded, so we can\'t open template files yet...this is a bug and should be reported.<br /><br />Backtrace, most recent call first:<pre>'.enano_debug_print_backtrace(true).'</pre>');
  1498       die('$template->extract_vars(): theme not yet loaded, so we can\'t open template files yet...this is a bug and should be reported.<br /><br />Backtrace, most recent call first:<pre>'.enano_debug_print_backtrace(true).'</pre>');
  1499     }
  1499     }
  1500     
  1500     
  1501     // Full pathname of template file
  1501     // Full pathname of template file
  1502     $tpl_file_fullpath = ENANO_ROOT . '/themes/' . $this->theme . '/' . $file;
  1502     $tpl_file_fullpath = ( strstr($file, '/') ) ? $file : ENANO_ROOT . '/themes/' . $this->theme . '/' . $file;
  1503     
  1503     
  1504     // Make sure the template even exists
  1504     // Make sure the template even exists
  1505     if ( !is_file($tpl_file_fullpath) )
  1505     if ( !is_file($tpl_file_fullpath) )
  1506     {
  1506     {
  1507       die_semicritical('Cannot find template file',
  1507       die_semicritical('Cannot find template file',