aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-23 13:32:08 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-23 13:32:08 +0000
commitb6249220fd37fa38da24064ce6893284117e966b (patch)
tree8fdfcb2edcc6fbcb0ee79f717dc919aa4c7fb135 /include
parent790f6b3bb6e4bf888a7fdb36f87a763cdb8ca450 (diff)
Only reset one type of extension.
git-svn-id: http://piwigo.org/svn/trunk@10596 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/ws_functions.inc.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 4f302a427..c706c7f75 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -2873,11 +2873,18 @@ function ws_extensions_ignoreupdate($params, &$service)
// Reset ignored extension
if ($params['reset'])
{
- $conf['updates_ignored'] = array(
- 'plugins'=>array(),
- 'themes'=>array(),
- 'languages'=>array()
- );
+ if (!empty($params['type']) and isset($conf['updates_ignored'][$params['type']]))
+ {
+ $conf['updates_ignored'][$params['type']] = array();
+ }
+ else
+ {
+ $conf['updates_ignored'] = array(
+ 'plugins'=>array(),
+ 'themes'=>array(),
+ 'languages'=>array()
+ );
+ }
conf_update_param('updates_ignored', pwg_db_real_escape_string(serialize($conf['updates_ignored'])));
unset($_SESSION['extensions_need_update']);
return true;