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 | /* |
---|
3 | Plugin Name: Piwigo AutoUpgrade |
---|
4 | Version: auto |
---|
5 | Description: Upgrade your gallery automatically. |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=302 |
---|
7 | Author: P@t |
---|
8 | Author URI: http://www.gauchon.com |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | |
---|
13 | if (script_basename() == 'admin') add_event_handler('get_admin_plugin_menu_links', 'check_for_auto_upgrade'); |
---|
14 | |
---|
15 | function 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.