aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 0cd0659c4..8a34990fa 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -686,6 +686,8 @@ function url_is_remote($url)
*/
function get_pwg_themes()
{
+ global $conf;
+
$themes = array();
$query = '
@@ -698,7 +700,10 @@ SELECT
$result = pwg_query($query);
while ($row = pwg_db_fetch_assoc($result))
{
- $themes[ $row['id'] ] = $row['name'];
+ if (file_exists($conf['themes_dir'].'/'.$row['name'].'/'.'themeconf.inc.php'))
+ {
+ $themes[ $row['id'] ] = $row['name'];
+ }
}
// plugins want remove some themes based on user status maybe?