mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Added check for empty sitebutton.
This commit is contained in:
@@ -25,6 +25,12 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
|||||||
$h = !empty($parm['h']) ? $parm['h'] : 100;
|
$h = !empty($parm['h']) ? $parm['h'] : 100;
|
||||||
|
|
||||||
$path = e107::getConfig()->get('sitebutton');
|
$path = e107::getConfig()->get('sitebutton');
|
||||||
|
|
||||||
|
if(empty($path))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$realPath = e107::getParser()->replaceConstants($path);
|
$realPath = e107::getParser()->replaceConstants($path);
|
||||||
|
|
||||||
if(defined('e_MEDIA') && is_writeable(e_MEDIA."temp/") && ($resized = e107::getMedia()->resizeImage($path, e_MEDIA."temp/".basename($realPath),'h='.$h)))
|
if(defined('e_MEDIA') && is_writeable(e_MEDIA."temp/") && ($resized = e107::getMedia()->resizeImage($path, e_MEDIA."temp/".basename($realPath),'h='.$h)))
|
||||||
|
Reference in New Issue
Block a user