Ignore:
Timestamp:
Mar 10, 2010, 11:07:14 PM (14 years ago)
Author:
vdigital
Message:

Fix: failed to open dir on default template

File:
1 edited

Legend:

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

    r5021 r5100  
    722722  foreach (get_dirs($template_dir) as $template)
    723723  {
    724     foreach (get_dirs($template_dir.'/'.$template.'/theme') as $theme)
    725     {
    726       if ( ($template.'/'.$theme) != $conf['admin_layout'] )
    727       array_push($themes, $template.'/'.$theme);
    728     }
     724    if ( $template != 'default' )
     725        {
     726      foreach (get_dirs($template_dir.'/'.$template.'/theme') as $theme)
     727      {
     728        array_push($themes, $template.'/'.$theme);
     729      }
     730        }
    729731  }
    730732
Note: See TracChangeset for help on using the changeset viewer.