From e05c79c7c9d8776ffc4802d85d427f4fc94433ee Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 13 Jun 2014 12:14:34 +0000 Subject: [PATCH] 2014-06-13 Miguel de Dios * godmode/setup/license.php: fixed the erased the update extension. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10188 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/godmode/setup/license.php | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) 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 '