* [bug #56147, done, 0.5h] export image proxy url to js var.

This commit is contained in:
sunhao
2024-11-27 14:53:07 +08:00
committed by 刘刚
parent fec3caec36
commit cc2d56dbf0
+2 -2
View File
@@ -107,10 +107,10 @@ class pageBase extends wg
{
$extraJS = isset($config->zin->extraJS) ? $config->zin->extraJS : 'zin.js';
if(!empty($extraJS)) $headImports[] = h::importJs($webRoot . 'js/zui3/' . $extraJS);
array_unshift($js, 'zui.defineFn();');
array_unshift($headImports, h::js("window.EDITOR_IMAGE_PROXY_ENDPOINT='{$webRoot}imgproxy.php';"));
}
if($zui) array_unshift($js, 'zui.defineFn();');
$currentLang = $this->props->get('lang');
if(empty($currentLang)) $currentLang = $app->getClientLang();