aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-06-16 12:02:22 +0000
committerflop25 <flop25@piwigo.org>2013-06-16 12:02:22 +0000
commit970b0a596ac6fc57131e09038a6ea6ace091e754 (patch)
tree9eb154ff6ada18645e327d2c3ca187905f6c6312 /admin/include
parent7025712a3fc350c303b8976e0833aac6ac680063 (diff)
feature:2925
new function theme_delete git-svn-id: http://piwigo.org/svn/trunk@23247 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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..8584ad713 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, $this->fs_themes[$theme_id]['version'], $errors);
+ }
+ }
+
if (!$this->deltree(PHPWG_THEMES_PATH.$theme_id))
{
$this->send_to_trash(PHPWG_THEMES_PATH.$theme_id);