Visual Console Refactor: fixed the visual console background on the meta

Former-commit-id: 2c5ba2451691558502c0aab4f5bb91259afb2ef8
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-22 09:40:08 +02:00
parent 7608eb86c7
commit a03245a277
3 changed files with 10 additions and 4 deletions

View File

@ -224,7 +224,10 @@ final class Container extends Model
if ($backgroundUrl === null && $backgroundImage !== null) {
$backgroundUrl = ui_get_full_url(
'images/console/background/'.$backgroundImage
'images/console/background/'.$backgroundImage,
false,
false,
false
);
$width = (int) $row['width'];
@ -238,7 +241,10 @@ final class Container extends Model
'file' => $backgroundUrl,
];
$row['backgroundURL'] = ui_get_full_url(
'include/Image/image_functions.php?'.http_build_query($q)
'include/Image/image_functions.php?'.http_build_query($q),
false,
false,
false
);
} else {
$row['backgroundURL'] = $backgroundUrl;

View File

@ -135,7 +135,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
var container = document.getElementById("visual-console-container");
var props = <?php echo (string) $visualConsole; ?>;
var items = <?php echo '['.implode($visualConsoleItems, ',').']'; ?>;
var baseUrl = "<?php echo $config['homeurl']; ?>";
var baseUrl = "<?php echo ui_get_full_url('/', false, false, false); ?>";
var handleUpdate = function (prevProps, newProps) {
if (!newProps) return;

View File

@ -222,7 +222,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
var container = document.getElementById("visual-console-container");
var props = <?php echo (string) $visualConsole; ?>;
var items = <?php echo '['.implode($visualConsoleItems, ',').']'; ?>;
var baseUrl = "<?php echo $config['homeurl']; ?>";
var baseUrl = "<?php echo ui_get_full_url('/', false, false, false); ?>";
var handleUpdate = function (prevProps, newProps) {
if (!newProps) return;