Ignore:
Timestamp:
Apr 23, 2011, 3:32:08 PM (13 years ago)
Author:
patdenice
Message:

Only reset one type of extension.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/updates_ext.php

    r10511 r10596  
    2828
    2929include_once(PHPWG_ROOT_PATH.'admin/include/updates.class.php');
    30 $autoupdate = new updates();
     30$autoupdate = new updates($page['page']);
    3131
     32$show_reset = false;
    3233if (!$autoupdate->get_server_extensions())
    3334{
     
    7778    }
    7879  }
     80
     81  if (!empty($conf['updates_ignored'][$type]))
     82  {
     83    $show_reset = true;
     84  }
    7985}
    8086
    81 $template->assign('SHOW_RESET', (!empty($conf['updates_ignored']['plugins']) or !empty($conf['updates_ignored']['themes']) or !empty($conf['updates_ignored']['languages'])));
     87$template->assign('SHOW_RESET', $show_reset);
    8288$template->assign('PWG_TOKEN', get_pwg_token());
     89$template->assign('EXT_TYPE', $page['page'] == 'updates' ? 'extensions' : $page['page']);
    8390$template->set_filename('plugin_admin_content', 'updates_ext.tpl');
    8491$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
Note: See TracChangeset for help on using the changeset viewer.