aboutsummaryrefslogtreecommitdiffstats
path: root/admin/updates_ext.php
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 /admin/updates_ext.php
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--admin/updates_ext.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/admin/updates_ext.php b/admin/updates_ext.php
index 4ce47b83f..fcbd729ca 100644
--- a/admin/updates_ext.php
+++ b/admin/updates_ext.php
@@ -27,8 +27,9 @@ if( !defined("PHPWG_ROOT_PATH") )
$conf['updates_ignored'] = unserialize($conf['updates_ignored']);
include_once(PHPWG_ROOT_PATH.'admin/include/updates.class.php');
-$autoupdate = new updates();
+$autoupdate = new updates($page['page']);
+$show_reset = false;
if (!$autoupdate->get_server_extensions())
{
array_push($page['errors'], l10n('Can\'t connect to server.'));
@@ -76,10 +77,16 @@ foreach ($autoupdate->types as $type)
);
}
}
+
+ if (!empty($conf['updates_ignored'][$type]))
+ {
+ $show_reset = true;
+ }
}
-$template->assign('SHOW_RESET', (!empty($conf['updates_ignored']['plugins']) or !empty($conf['updates_ignored']['themes']) or !empty($conf['updates_ignored']['languages'])));
+$template->assign('SHOW_RESET', $show_reset);
$template->assign('PWG_TOKEN', get_pwg_token());
+$template->assign('EXT_TYPE', $page['page'] == 'updates' ? 'extensions' : $page['page']);
$template->set_filename('plugin_admin_content', 'updates_ext.tpl');
$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');