From 8941599e5c893d841cd10084086da0eb38a05e72 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Fri, 4 Apr 2008 09:51:06 +0000 Subject: [PATCH] stupid fix when using file_exists on a directory --- fp-includes/core/core.theme.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fp-includes/core/core.theme.php b/fp-includes/core/core.theme.php index fa354ef..11fa497 100644 --- a/fp-includes/core/core.theme.php +++ b/fp-includes/core/core.theme.php @@ -100,22 +100,22 @@ } function theme_getdir($id = THE_THEME) { - return THEMES_DIR . ($id) . '/'; + return theme_exists($id); } function theme_exists($id) { - $f = theme_getdir($id); + // quick fix for win + $f = THEMES_DIR . ($id); if (file_exists($f)) - return $f; + return $f .'/'; return ''; } function theme_style_exists($id, $themeid=THE_THEME) { if ($f = theme_exists($themeid)) { - $fs = $f . ($id) . '/'; - if (file_exists($fs)) - return $fs; + if (file_exists($f)) + return $f . '/'; } return '';