From c127f5bd50ac1f162d84e0b2051cd9b40c8a9344 Mon Sep 17 00:00:00 2001 From: Gabriel Jenik Date: Thu, 8 Apr 2021 07:51:33 -0300 Subject: [PATCH] Fixed issue # 17207: When attaching using the theme editor, full path is displayed on the screen (#1840) --- application/controllers/admin/themes.php | 3 +++ application/views/admin/themes/templatesummary_view.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/admin/themes.php b/application/controllers/admin/themes.php index 451a9f13b47..76ad27c0e6e 100755 --- a/application/controllers/admin/themes.php +++ b/application/controllers/admin/themes.php @@ -938,11 +938,14 @@ protected function _templatesummary($templatename, $screenname, $editfile, $rela break; } + $sFileDisplayName = ltrim(str_replace(Yii::app()->getConfig('rootdir'), '', $editfile), DIRECTORY_SEPARATOR); + $editableCssFiles = $oEditedTemplate->getValidScreenFiles("css"); $filesdir = $oEditedTemplate->filesPath; $aData['oEditedTemplate'] = $oEditedTemplate; $aData['screenname'] = $screenname; $aData['editfile'] = $editfile; + $aData['filedisplayname'] = $sFileDisplayName; $aData['relativePathEditfile'] = $relativePathEditfile; $aData['tempdir'] = $tempdir; $aData['templatename'] = $templatename; diff --git a/application/views/admin/themes/templatesummary_view.php b/application/views/admin/themes/templatesummary_view.php index 8cca229961c..85a97b7bb41 100644 --- a/application/views/admin/themes/templatesummary_view.php +++ b/application/views/admin/themes/templatesummary_view.php @@ -8,7 +8,7 @@
- +