Changeset 3604


Ignore:
Timestamp:
07/16/09 15:28:38 (11 years ago)
Author:
patdenice
Message:

Invalidate user cache and purge templates after upgrade.

Location:
extensions/autoupdate
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/autoupdate.php

    r3576 r3604  
    5959      } 
    6060      autoupdate_deltree($conf['local_data_dir'].'/autoupdate'); 
     61      invalidate_user_cache(true); 
     62      $template->delete_compiled_templates(); 
    6163      redirect('admin.php?autoupdate=success'); 
    6264    } 
  • extensions/autoupdate/main.inc.php

    r3576 r3604  
    22/* 
    33Plugin Name: Piwigo AutoUpgrade 
    4 Version: 2.0.b 
     4Version: auto 
    55Description: Upgrade your gallery automatically. 
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=302 
     
    1515function check_for_auto_upgrade($plugin_menu_links) 
    1616{ 
    17   global $page, $conf, $header_notes; 
     17  global $template, $page, $conf, $header_notes; 
    1818  if ($page['page'] == 'intro') include(dirname(__FILE__).'/autoupdate.php'); 
    1919  return $plugin_menu_links; 
Note: See TracChangeset for help on using the changeset viewer.