diff options
author | mistic100 <mistic@piwigo.org> | 2011-06-03 22:25:01 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2011-06-03 22:25:01 +0000 |
commit | d2fa16a7f5a0f334d72080eb12b78aea549e8d8b (patch) | |
tree | 2843951d03bc6248911539eee6047c520593fbe9 /admin/plugins_new.php | |
parent | 0af1d99ebf47e2028aef143d44b9f428e1a5df19 (diff) |
store display order of plugins_new in a session var
git-svn-id: http://piwigo.org/svn/trunk@11222 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/plugins_new.php')
-rw-r--r-- | admin/plugins_new.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/admin/plugins_new.php b/admin/plugins_new.php index b34bb5acf..c623f4c3b 100644 --- a/admin/plugins_new.php +++ b/admin/plugins_new.php @@ -95,7 +95,18 @@ $template->assign('order_options', // +-----------------------------------------------------------------------+ if ($plugins->get_server_plugins(true)) { - $plugins->sort_server_plugins('date'); + /* order plugins */ + if (pwg_get_session_var('plugins_new_order') != null) + { + $order_selected = pwg_get_session_var('plugins_new_order'); + $plugins->sort_server_plugins($order_selected); + $template->assign('order_selected', $order_selected); + } + else + { + $plugins->sort_server_plugins('date'); + $template->assign('order_selected', 'date'); + } foreach($plugins->server_plugins as $plugin) { |