source: extensions/autoupdate/main.inc.php @ 3838

Last change on this file since 3838 was 3604, checked in by patdenice, 15 years ago

Invalidate user cache and purge templates after upgrade.

File size: 600 bytes
Line 
1<?php
2/*
3Plugin Name: Piwigo AutoUpgrade
4Version: auto
5Description: Upgrade your gallery automatically.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=302
7Author: P@t
8Author URI: http://www.gauchon.com
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13if (script_basename() == 'admin') add_event_handler('get_admin_plugin_menu_links', 'check_for_auto_upgrade');
14
15function check_for_auto_upgrade($plugin_menu_links)
16{
17  global $template, $page, $conf, $header_notes;
18  if ($page['page'] == 'intro') include(dirname(__FILE__).'/autoupdate.php');
19  return $plugin_menu_links;
20}
21?>
Note: See TracBrowser for help on using the repository browser.