1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Issue #1022 : Blank admin on fresh install.

This commit is contained in:
Cameron
2015-05-23 12:28:24 -07:00
parent 3d5ea3b708
commit 88c343a793

View File

@@ -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);
}