diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 13b5ae9ad5..65e7988cfb 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2014-06-13 Miguel de Dios + + * godmode/setup/license.php: fixed the erased the update extension. + 2014-06-13 Sergio Martin * extensions/realtime_graphs.php diff --git a/pandora_console/godmode/setup/license.php b/pandora_console/godmode/setup/license.php index 808cbe2c94..c7e39339f2 100644 --- a/pandora_console/godmode/setup/license.php +++ b/pandora_console/godmode/setup/license.php @@ -28,7 +28,8 @@ ui_print_page_header (__('License management'), "images/extensions.png", false, if ($update_settings) { foreach ($_POST['keys'] as $key => $value) { - um_db_update_setting ($key, $value); + db_process_sql_update('tupdate_settings', + array('value' => $value), array('key' => $key)); } ui_print_success_message(__('License updated')); @@ -38,8 +39,12 @@ ui_require_javascript_file_enterprise('load_enterprise'); enterprise_include_once('include/functions_license.php'); $license = enterprise_hook('license_get_info'); -$settings = null; -$settings = um_db_load_settings (); +$rows = db_get_all_rows_in_table('tupdate_settings'); + +$settings = new StdClass; +foreach ($rows as $row) { + $settings->$row['key'] = $row['value']; +} echo '