Normalize base URL usage in admin templates

This commit is contained in:
Hypolite Petovan
2022-03-11 22:40:27 -05:00
parent 0c4f1eadb8
commit d15ebb6fd3
11 changed files with 20 additions and 18 deletions

View File

@@ -76,7 +76,7 @@ class Details extends BaseAdmin
require_once "view/theme/$theme/config.php";
if (function_exists('theme_admin')) {
$admin_form = '<iframe onload="resizeIframe(this);" src="/admin/themes/' . $theme . '/embed?mode=minimal" width="100%" height="600px" frameborder="no"></iframe>';
$admin_form = '<iframe onload="resizeIframe(this);" src="' . DI::baseUrl()->get(true) . '/admin/themes/' . $theme . '/embed?mode=minimal" width="100%" height="600px" frameborder="no"></iframe>';
}
}