diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 59824a3de1..c13fcbfc1c 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-05-27 Ramon Novoa + + * extensions/update_manager/main.php: Show an error instead of + 'updating...' if a non-enterprise user tries to update. + 2010-05-27 Ramon Novoa * include/fgraph.php: Improved the speed of chart drawing algorithms. diff --git a/pandora_console/extensions/update_manager/main.php b/pandora_console/extensions/update_manager/main.php index c2fb464c30..bd7808f287 100644 --- a/pandora_console/extensions/update_manager/main.php +++ b/pandora_console/extensions/update_manager/main.php @@ -40,13 +40,17 @@ $user_key = get_user_key ($settings); $update_package = (bool) get_parameter_post ('update_package'); if ($update_package) { - echo '

'.__('Updating').'...

'; - flush (); - $force = (bool) get_parameter_post ('force_update'); - - um_client_upgrade_to_latest ($user_key, $force); - /* TODO: Add a new in tnews */ - $settings = um_db_load_settings (); + if ($config['enterprise_installed'] == 1) { + echo '

'.__('Updating').'...

'; + flush (); + $force = (bool) get_parameter_post ('force_update'); + + um_client_upgrade_to_latest ($user_key, $force); + /* TODO: Add a new in tnews */ + $settings = um_db_load_settings (); + } else { + echo '
' . __('This is an Enterprise feature. Visit %s for more information.', 'http://pandorafms.com') . '
'; + } } $package = um_client_check_latest_update ($settings, $user_key);