Skip to content

Commit

Permalink
Dev: unsure part : TemplateConfiguration have sid, use it or not in _…
Browse files Browse the repository at this point in the history
…filterImages

Dev: if we pit thius function public : we can call it directly via public part : _filterImages return all info needed to show an image
Dev: currently : if there are global files : it's replaced by template files
Dev: but can be seem 2 times …
  • Loading branch information
Shnoulle committed Oct 24, 2018
1 parent 117abc8 commit 1086310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/TemplateConfiguration.php
Expand Up @@ -800,7 +800,7 @@ private function _filterImages($file,$surveyId = null)
if(file_exists($this->filesPath.$file['name']) ) {
$imagePath = $this->filesPath.$file['name'];
}
if($surveyId && file_exists(Yii::app()->getConfig('uploaddir').'/surveys/'.$this->sid.'/images/'.$file['name']) ) {
if($surveyId && file_exists(Yii::app()->getConfig('uploaddir').'/surveys/'.$surveyId.'/images/'.$file['name']) ) {
$imagePath = Yii::app()->getConfig('uploaddir').'/surveys/'.$this->sid.'/images/'.$file['name'];
}
if(!$imagePath) {
Expand Down

0 comments on commit 1086310

Please sign in to comment.