From 297b3ea2277c6a9d14366cee760b452656c2af09 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Wed, 5 Mar 2014 23:24:10 +0100 Subject: [PATCH] Fixed issue #8812: Email attachments configuration is not saved --- .../controllers/admin/emailtemplates.php | 2 +- .../emailtemplates/emailtemplates_view.php | 22 ------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/application/controllers/admin/emailtemplates.php b/application/controllers/admin/emailtemplates.php index ab30c5d7781..f0ff12e5c78 100644 --- a/application/controllers/admin/emailtemplates.php +++ b/application/controllers/admin/emailtemplates.php @@ -84,7 +84,7 @@ function index($iSurveyId) */ function update($iSurveyId) { - $uploadUrl = Yii::app()->getBaseUrl(true) . Yii::app()->getConfig('uploadurl'); + $uploadUrl = Yii::app()->getBaseUrl(true) . substr(Yii::app()->getConfig('uploadurl'),strlen(Yii::app()->getConfig('publicurl'))-1); // We need the real path since we check that the resolved file name starts with this path. $uploadDir = realpath(Yii::app()->getConfig('uploaddir')); $save=Yii::app()->request->getPost('save',''); diff --git a/application/views/admin/emailtemplates/emailtemplates_view.php b/application/views/admin/emailtemplates/emailtemplates_view.php index 0b332e21891..c5f832f25af 100644 --- a/application/views/admin/emailtemplates/emailtemplates_view.php +++ b/application/views/admin/emailtemplates/emailtemplates_view.php @@ -24,29 +24,7 @@ -
eT("Edit email templates"); ?>