1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Fixes #5156 Static URL issue.

This commit is contained in:
camer0n
2023-12-18 12:21:49 -08:00
parent 59f05d7bb7
commit ab5f0fb911
4 changed files with 130 additions and 16 deletions

View File

@@ -105,7 +105,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
// Paths to image file, link are relative to site base
$tp = e107::getParser();
$logopref = e107::getConfig('core')->get('sitelogo');
$logopref = e107::getConfig()->get('sitelogo');
$logop = $tp->replaceConstants($logopref);
if(isset($parm['login'])) // Login Page. BC fix.
@@ -138,9 +138,9 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
else
{
if(vartrue($logopref) && is_readable($logop))
if(!empty($logopref) && is_readable($logop))
{
$logo = $tp->replaceConstants($logopref,'abs');
$logo = $logopref;
$path = $tp->replaceConstants($logopref);
}
elseif (isset($file) && $file && is_readable($file))
@@ -169,8 +169,8 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
if((isset($parm['w']) || isset($parm['h'])))
{
//
$dimensions[0] = isset($parm['w']) ? $parm['w'] : 0;
$dimensions[0] = $parm['w'] ?? 0;
$dimensions[1] = !empty($parm['h']) ? $parm['h'] : 0;
if(empty($parm['noresize']) && !empty($logopref)) // resize by default - avoiding large files.