2010-05-27 Ramon Novoa <rnovoa@artica.es>

* extensions/update_manager/main.php: Show an error instead of
          'updating...' if a non-enterprise user tries to update.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2810 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2010-05-27 13:55:24 +00:00
parent c6351ba609
commit 416564addf
2 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2010-05-27 Ramon Novoa <rnovoa@artica.es>
* extensions/update_manager/main.php: Show an error instead of
'updating...' if a non-enterprise user tries to update.
2010-05-27 Ramon Novoa <rnovoa@artica.es> 2010-05-27 Ramon Novoa <rnovoa@artica.es>
* include/fgraph.php: Improved the speed of chart drawing algorithms. * include/fgraph.php: Improved the speed of chart drawing algorithms.

View File

@ -40,13 +40,17 @@ $user_key = get_user_key ($settings);
$update_package = (bool) get_parameter_post ('update_package'); $update_package = (bool) get_parameter_post ('update_package');
if ($update_package) { if ($update_package) {
echo '<h2>'.__('Updating').'...</h2>'; if ($config['enterprise_installed'] == 1) {
flush (); echo '<h2>'.__('Updating').'...</h2>';
$force = (bool) get_parameter_post ('force_update'); flush ();
$force = (bool) get_parameter_post ('force_update');
um_client_upgrade_to_latest ($user_key, $force);
/* TODO: Add a new in tnews */ um_client_upgrade_to_latest ($user_key, $force);
$settings = um_db_load_settings (); /* TODO: Add a new in tnews */
$settings = um_db_load_settings ();
} else {
echo '<h5 class="error">' . __('This is an Enterprise feature. Visit %s for more information.', '<a href="http://pandorafms.com">http://pandorafms.com</a>') . '</h5>';
}
} }
$package = um_client_check_latest_update ($settings, $user_key); $package = um_client_check_latest_update ($settings, $user_key);