Commit 4baf00779b8808235f10d1aa1185a4576d6f3a6d
1 parent
ad9d40aa
Brand server without requiring access to FS
PT: 1243391 Fixed selecting default set to first scaled image. Updated by: Charl Joseph Mert
Showing
1 changed file
with
6 additions
and
2 deletions
plugins/ktcore/admin/manageBranding.php
| ... | ... | @@ -909,8 +909,12 @@ class ManageBrandDispatcher extends KTAdminDispatcher { |
| 909 | 909 | */ |
| 910 | 910 | function do_selectLogo(){ |
| 911 | 911 | global $default; |
| 912 | - | |
| 913 | - $tmpLogoFileName = end(explode(DIRECTORY_SEPARATOR, $_REQUEST['kt_imageselect'])); | |
| 912 | + | |
| 913 | + if ($_REQUEST['kt_imageselect'] != '') { | |
| 914 | + $tmpLogoFileName = end(explode(DIRECTORY_SEPARATOR, $_REQUEST['kt_imageselect'])); | |
| 915 | + } else { | |
| 916 | + $tmpLogoFileName = end(explode(DIRECTORY_SEPARATOR, $_REQUEST['data']['kt_imageselect'])); | |
| 917 | + } | |
| 914 | 918 | |
| 915 | 919 | $form = $this->getApplyLogoForm($tmpLogoFileName); |
| 916 | 920 | return $form->render(); | ... | ... |