diff options
author | patdenice <patdenice@piwigo.org> | 2008-03-02 18:56:05 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2008-03-02 18:56:05 +0000 |
commit | 1283b5ecb1e5e01d9f2ebef555949ac517be89dd (patch) | |
tree | ad8c1c347d50324989f1776e8a3a2c30a5c99478 /admin/plugins.php | |
parent | 78e175b3fb7c8d2f9824b15632595523f9ea236c (diff) |
Corections to respect coding conventions.
Change plugins versions to 1.8
Change 3 plugins URI.
git-svn-id: http://piwigo.org/svn/trunk@2243 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/plugins.php')
-rw-r--r-- | admin/plugins.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/admin/plugins.php b/admin/plugins.php index 63054fc55..d40158b33 100644 --- a/admin/plugins.php +++ b/admin/plugins.php @@ -151,26 +151,26 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"'; } } break; - + case 'delete': - if (!pm_deltree(PHPWG_PLUGINS_PATH . $plugin_id)) + if (!deltree(PHPWG_PLUGINS_PATH . $plugin_id)) { - send_pm_trash(PHPWG_PLUGINS_PATH . $plugin_id); + send_to_trash(PHPWG_PLUGINS_PATH . $plugin_id); } break; } if (empty($errors)) - { - $my_base_url .= isset($_GET['upgrade']) ? + { + $my_base_url .= isset($_GET['upgrade']) ? '&plugin='.$plugin_id.'&upgrade='.$_GET['upgrade'].'&reactivate=true':''; - $my_base_url .= isset($_GET['upgradestatus']) ? + $my_base_url .= isset($_GET['upgradestatus']) ? '&plugin='.$plugin_id.'&upgradestatus='.$_GET['upgradestatus']:''; - redirect($my_base_url); + redirect($my_base_url); } - else - { + else + { $page['errors'] = array_merge($page['errors'], $errors); } } |