diff options
author | plegall <plg@piwigo.org> | 2010-03-30 13:30:50 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-30 13:30:50 +0000 |
commit | 68167d3ecf2f024c74407fb1bd6a13fd0d5565f3 (patch) | |
tree | 9e117c2e99a2af4bec8a5d642f45a76884879592 /admin | |
parent | 75ba6ad47a45ffd582efd3bbdb40aaa5aab2086a (diff) |
feature 1557: remove the sorting feature on plugin list, because it becomes
not very relevant with the new design.
git-svn-id: http://piwigo.org/svn/trunk@5475 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/plugins_list.php | 19 | ||||
-rw-r--r-- | admin/themes/default/template/plugins_list.tpl | 6 |
2 files changed, 2 insertions, 23 deletions
diff --git a/admin/plugins_list.php b/admin/plugins_list.php index 8b8bf4873..89fa4c6dd 100644 --- a/admin/plugins_list.php +++ b/admin/plugins_list.php @@ -30,8 +30,7 @@ include_once(PHPWG_ROOT_PATH.'admin/include/plugins.class.php'); $template->set_filenames(array('plugins' => 'plugins_list.tpl')); -$order = isset($_GET['order']) ? $_GET['order'] : 'name'; -$base_url = get_root_url().'admin.php?page='.$page['page'].'&order='.$order; +$base_url = get_root_url().'admin.php?page='.$page['page']; $action_url = $base_url.'&plugin='.'%s'.'&pwg_token='.get_pwg_token(); $plugins = new plugins(); @@ -56,25 +55,11 @@ if (isset($_GET['action']) and isset($_GET['plugin']) and !is_adviser()) //--------------------------------------------------------------------Tabsheet $plugins->set_tabsheet($page['page']); -//---------------------------------------------------------------Order options -$link = get_root_url().'admin.php?page='.$page['page'].'&order='; - -$template->assign( - 'order_options', - array( - $link.'name' => l10n('Name'), - $link.'status' => l10n('Status'), - $link.'author' => l10n('Author'), - $link.'id' => 'Id') - ); - -$template->assign('order_selected', $link.$order); - // +-----------------------------------------------------------------------+ // | start template output | // +-----------------------------------------------------------------------+ -$plugins->sort_fs_plugins($order); +$plugins->sort_fs_plugins('name'); foreach($plugins->fs_plugins as $plugin_id => $fs_plugin) { diff --git a/admin/themes/default/template/plugins_list.tpl b/admin/themes/default/template/plugins_list.tpl index f09e6a09a..6b7241237 100644 --- a/admin/themes/default/template/plugins_list.tpl +++ b/admin/themes/default/template/plugins_list.tpl @@ -1,10 +1,4 @@ <div class="titrePage"> -<span class="sort"> -{'Sort order'|@translate} : - <select onchange="document.location = this.options[this.selectedIndex].value;" style="width:200px"> - {html_options options=$order_options selected=$order_selected} - </select> -</span> <h2>{'Plugins'|@translate}</h2> </div> |