mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Issue #1022 : Blank admin on fresh install.
This commit is contained in:
@@ -27,7 +27,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
||||
$path = e107::getConfig()->get('sitebutton');
|
||||
$realPath = e107::getParser()->replaceConstants($path);
|
||||
|
||||
if($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)))
|
||||
{
|
||||
$path = e107::getParser()->createConstants($resized);
|
||||
}
|
||||
|
Reference in New Issue
Block a user