Skip to content

Commit

Permalink
feature 1557: remove the sorting feature on plugin list, because it b…
Browse files Browse the repository at this point in the history
…ecomes

not very relevant with the new design.

git-svn-id: http://piwigo.org/svn/trunk@5475 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Mar 30, 2010
1 parent 75ba6ad commit 68167d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
19 changes: 2 additions & 17 deletions admin/plugins_list.php
Expand Up @@ -30,8 +30,7 @@

$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();
Expand All @@ -56,25 +55,11 @@
//--------------------------------------------------------------------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)
{
Expand Down
6 changes: 0 additions & 6 deletions 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>

Expand Down

0 comments on commit 68167d3

Please sign in to comment.