From f6472c03c19dab6b8ee6610b2d12bdac69faed36 Mon Sep 17 00:00:00 2001 From: chmst Date: Sun, 24 Oct 2021 19:31:55 +0200 Subject: [PATCH] Fixed width and height for popups as there never were width and height params --- src/modules/mod_weblinks/tmpl/default.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/mod_weblinks/tmpl/default.php b/src/modules/mod_weblinks/tmpl/default.php index b815a3a..a1381c5 100644 --- a/src/modules/mod_weblinks/tmpl/default.php +++ b/src/modules/mod_weblinks/tmpl/default.php @@ -51,7 +51,7 @@ use Joomla\CMS\HTML\HTMLHelper; break; case 2: // Open in a popup window - $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' . htmlspecialchars($width, ENT_COMPAT, 'UTF-8') . ',height=' . htmlspecialchars($width, ENT_COMPAT, 'UTF-8') . ''; + $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=500'; echo "" . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . ''; break; @@ -109,9 +109,7 @@ use Joomla\CMS\HTML\HTMLHelper; break; case 2: // Open in a popup window - $width = $item->params->get('width', 600); - $height = $item->params->get('height', 500); - $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' . htmlspecialchars($width, ENT_COMPAT, 'UTF-8') . ',height=' . htmlspecialchars($height, ENT_COMPAT, 'UTF-8') . ''; + $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=500'; echo "" . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . ''; break;