From 4baf00779b8808235f10d1aa1185a4576d6f3a6d Mon Sep 17 00:00:00 2001 From: Charl Joseph Mert Date: Thu, 21 Jan 2010 14:46:56 +0200 Subject: [PATCH] Brand server without requiring access to FS PT: 1243391 --- plugins/ktcore/admin/manageBranding.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/ktcore/admin/manageBranding.php b/plugins/ktcore/admin/manageBranding.php index f81a48f..f1d032d 100755 --- a/plugins/ktcore/admin/manageBranding.php +++ b/plugins/ktcore/admin/manageBranding.php @@ -909,8 +909,12 @@ class ManageBrandDispatcher extends KTAdminDispatcher { */ function do_selectLogo(){ global $default; - - $tmpLogoFileName = end(explode(DIRECTORY_SEPARATOR, $_REQUEST['kt_imageselect'])); + + if ($_REQUEST['kt_imageselect'] != '') { + $tmpLogoFileName = end(explode(DIRECTORY_SEPARATOR, $_REQUEST['kt_imageselect'])); + } else { + $tmpLogoFileName = end(explode(DIRECTORY_SEPARATOR, $_REQUEST['data']['kt_imageselect'])); + } $form = $this->getApplyLogoForm($tmpLogoFileName); return $form->render(); -- libgit2 0.21.4