From b6249220fd37fa38da24064ce6893284117e966b Mon Sep 17 00:00:00 2001 From: patdenice Date: Sat, 23 Apr 2011 13:32:08 +0000 Subject: Only reset one type of extension. git-svn-id: http://piwigo.org/svn/trunk@10596 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_functions.inc.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'include') 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; -- cgit v1.2.3