* [bug #56147, done, 0.5h] export image proxy url to js var.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user