From 846adeccf91359fb0dfe1fc8f4d2d9f165059151 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Fri, 2 Nov 2007 17:12:10 +0000 Subject: [PATCH] non-theme dir were listed as themes. now checking for the existance of $dir/themes.conf.php : old-style themes will be therefore IGNORED --- admin/panels/themes/admin.themes.php | 3 +++ admin/panels/themes/admin.themes.tpl | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/panels/themes/admin.themes.php b/admin/panels/themes/admin.themes.php index 72a4b67..7ce6564 100644 --- a/admin/panels/themes/admin.themes.php +++ b/admin/panels/themes/admin.themes.php @@ -94,6 +94,9 @@ $f = $d . '/theme.conf.php'; + if (!file_exists($f)) + continue; + $theme = admin_theme_data($d . '/theme.conf.php', $thm, $this->defprev); $info[] = $theme; diff --git a/admin/panels/themes/admin.themes.tpl b/admin/panels/themes/admin.themes.tpl index 3814521..3ebad4a 100644 --- a/admin/panels/themes/admin.themes.tpl +++ b/admin/panels/themes/admin.themes.tpl @@ -9,12 +9,14 @@ + +{if $available_themes} +

{$panelstrings.head2}

{$panelstrings.descr}

-{if $available_themes}