aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/include/themes.class.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php
index 654d220ef..c639aed7d 100644
--- a/admin/include/themes.class.php
+++ b/admin/include/themes.class.php
@@ -212,6 +212,15 @@ DELETE
break;
}
+ if (file_exists($file_to_include))
+ {
+ include($file_to_include);
+ if (function_exists('theme_delete'))
+ {
+ theme_delete($theme_id);
+ }
+ }
+
if (!$this->deltree(PHPWG_THEMES_PATH.$theme_id))
{
$this->send_to_trash(PHPWG_THEMES_PATH.$theme_id);