From 38d44ee3e219dc9d994ccd202d58b14ed906c971 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 3 May 2022 15:40:06 +0200 Subject: [PATCH] fix some egw_LAB not defined errors by using top.egw_ready instead --- api/src/Framework.php | 4 +++- api/src/Html.php | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/api/src/Framework.php b/api/src/Framework.php index 9c4c6faf7b..9eb1bdeab1 100644 --- a/api/src/Framework.php +++ b/api/src/Framework.php @@ -722,6 +722,7 @@ abstract class Framework extends Framework\Extra * @param string $password =null password --------- " ---------- * @param array $opts =array() further params for http(s) context, eg. array('timeout' => 123) * @return resource|null context to use with file_get_context/fopen or null if no proxy configured + * @noinspection UnsupportedStringOffsetOperationsInspection */ public static function proxy_context($username=null, $password=null, array $opts = array()) { @@ -1117,7 +1118,7 @@ abstract class Framework extends Framework\Extra $GLOBALS['egw_info']['flags']['java_script'] = preg_replace(array('/(]*>)([^<]*)/is','/<\/script>/'),array('$2',''),$GLOBALS['egw_info']['flags']['java_script']); if(trim($GLOBALS['egw_info']['flags']['java_script']) != '') { - $java_script .= '\n"; + $java_script .= '\n"; } } @@ -1701,6 +1702,7 @@ abstract class Framework extends Framework\Extra $list = array(); foreach((array)$_account_ids as $account_id) { + /** @noinspection SuspiciousLoopInspection */ foreach($account_id < 0 && $_resolve_groups ? $GLOBALS['egw']->accounts->members($account_id, true) : array($account_id) as $account_id) { diff --git a/api/src/Html.php b/api/src/Html.php index 315b67bc93..5f326c15d7 100644 --- a/api/src/Html.php +++ b/api/src/Html.php @@ -1,4 +1,5 @@ -var lab = egw_LAB || \$LAB; lab.wait(function() {jQuery(function() {if(jQuery().chosen) jQuery('select[name=\"$name\"]').chosen({width: '100%'});});})\n"; + $out .= "\n"; } return $out; } @@ -469,8 +470,8 @@ class Html '