Ignore:
Timestamp:
Jun 4, 2011, 12:25:01 AM (13 years ago)
Author:
mistic100
Message:

store display order of plugins_new in a session var

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_new.php

    r10638 r11222  
    9696if ($plugins->get_server_plugins(true))
    9797{
    98   $plugins->sort_server_plugins('date');
     98  /* order plugins */
     99  if (pwg_get_session_var('plugins_new_order') != null)
     100  {
     101    $order_selected = pwg_get_session_var('plugins_new_order');
     102    $plugins->sort_server_plugins($order_selected);
     103    $template->assign('order_selected', $order_selected);
     104  }
     105  else
     106  {
     107    $plugins->sort_server_plugins('date');
     108    $template->assign('order_selected', 'date');
     109  }
    99110
    100111  foreach($plugins->server_plugins as $plugin)
Note: See TracChangeset for help on using the changeset viewer.