summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 4aa89b6d6..11d2c82e9 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -40,7 +40,7 @@ class BaseTheme {
$terms[] = l($term->name, array("or" => $term->tid), "index");
}
}
-
+
$output = "<b>". check_output($node->title) ."</b> by ". format_name($node) ."<br />";
if (count($terms)) {
$output .= "<small>(". $this->links($terms) .")</small><br />";
@@ -97,7 +97,9 @@ function theme_list() {
$list = array();
$result = db_query("SELECT * FROM system where type = 'theme' AND status = '1' ORDER BY name");
while ($theme = db_fetch_object($result)) {
- $list[$theme->name] = $theme;
+ if (file_exists($theme->filename)) {
+ $list[$theme->name] = $theme;
+ }
}
}