Skip to content

Commit

Permalink
feature:2925
Browse files Browse the repository at this point in the history
new function theme_delete

git-svn-id: http://piwigo.org/svn/trunk@23247 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
flop25 committed Jun 16, 2013
1 parent 7025712 commit 970b0a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions admin/include/themes.class.php
Expand Up @@ -212,6 +212,15 @@ function perform_action($action, $theme_id)
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);
Expand Down

0 comments on commit 970b0a5

Please sign in to comment.