From 7f65fd8f74eabf4ad79cbf63c1cd5fa94742badb Mon Sep 17 00:00:00 2001 From: camer0n Date: Fri, 6 Jun 2025 13:26:58 -0700 Subject: [PATCH] Issue #5465 Make sure LAN constants are converted for inline tooltips. --- e107_admin/image.php | 2 +- e107_handlers/form_handler.php | 2 +- e107_handlers/pref_class.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index 320af623e..6fa357cd3 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -1171,7 +1171,7 @@ class media_admin_ui extends e_admin_ui $this->batchDelete(); } - if(varset($_POST['update_options'])) + if(!empty($_POST['update_options'])) { $this->updateSettings(); } diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 271bcae5a..32c0e3c46 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -5093,7 +5093,7 @@ var_dump($select_options);*/ $options['pk'] = $pid; } - $title = varset($options['title'], (LAN_EDIT . ' ' . $fieldName)); + $title = varset($options['title'], (LAN_EDIT . ' ' . defset($fieldName,$fieldName))); $class = varset($options['class']); unset($options['title']); diff --git a/e107_handlers/pref_class.php b/e107_handlers/pref_class.php index addc41471..0ead704e1 100644 --- a/e107_handlers/pref_class.php +++ b/e107_handlers/pref_class.php @@ -619,7 +619,8 @@ class e_pref extends e_front_model e107::includeLan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_admin.php'); $log->addSuccess(LAN_SETSAVED, ($session_messages === null || $session_messages === true)); - + // $debug = debug_backtrace(null,2); + // e107::getMessage()->addDebug(print_a($debug,true)); $uid = USERID; if(empty($uid)) // Log extra details of any pref changes made by a non-user.