Changeset 4901


Ignore:
Timestamp:
Feb 17, 2010, 4:50:41 PM (14 years ago)
Author:
plg
Message:

bug 1443 fixed: ability to uninstall a missing plugin. I had forgotten the
pwg_token for this specific action on this specific state in r4506 for
bug:1328

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/plugins_list.php

    r4506 r4901  
    3333$order = isset($_GET['order']) ? $_GET['order'] : 'name';
    3434$base_url = get_root_url().'admin.php?page='.$page['page'].'&order='.$order;
     35$action_url = $base_url.'&plugin='.'%s'.'&pwg_token='.get_pwg_token();
    3536
    3637$plugins = new plugins();
     
    99100          'VERSION' => $fs_plugin['version'],
    100101          'DESCRIPTION' => $desc,
    101           'U_ACTION' => $base_url.'&plugin='.$plugin_id.'&pwg_token='.get_pwg_token());
     102          'U_ACTION' => sprintf($action_url, $plugin_id));
    102103
    103104  if (isset($plugins->db_plugins_by_id[$plugin_id]))
     
    118119foreach($missing_plugin_ids as $plugin_id)
    119120{
    120   $action_url = $base_url.'&plugin='.$plugin_id;
    121 
    122121  $template->append( 'plugins',
    123122      array(
     
    125124        'VERSION' => $plugins->db_plugins_by_id[$plugin_id]['version'],
    126125        'DESCRIPTION' => "ERROR: THIS PLUGIN IS MISSING BUT IT IS INSTALLED! UNINSTALL IT NOW !",
    127         'U_ACTION' => $base_url.'&plugin='.$plugin_id,
     126        'U_ACTION' => sprintf($action_url, $plugin_id),
    128127        'STATE' => 'missing'
    129128      )
Note: See TracChangeset for help on using the changeset viewer.