non-theme dir were listed as themes. now checking for the existance of $dir/themes.conf.php : old-style themes will be therefore IGNORED

This commit is contained in:
real_nowhereman 2007-11-02 17:12:10 +00:00
parent 3daa91a8a5
commit 846adeccf9
2 changed files with 6 additions and 1 deletions

View File

@ -94,6 +94,9 @@
$f = $d . '/theme.conf.php'; $f = $d . '/theme.conf.php';
if (!file_exists($f))
continue;
$theme = admin_theme_data($d . '/theme.conf.php', $thm, $this->defprev); $theme = admin_theme_data($d . '/theme.conf.php', $thm, $this->defprev);
$info[] = $theme; $info[] = $theme;

View File

@ -9,12 +9,14 @@
</div> </div>
{if $available_themes}
<div id="available-themes"> <div id="available-themes">
<h2>{$panelstrings.head2}</h2> <h2>{$panelstrings.head2}</h2>
<p>{$panelstrings.descr}</p> <p>{$panelstrings.descr}</p>
{if $available_themes}
<ul> <ul>
{foreach from=$available_themes item=thm} {foreach from=$available_themes item=thm}