Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed issue #11847: Don't move all template in asset directory (views…
… not needed)
- Loading branch information
Louis Gac
committed
Nov 15, 2016
1 parent
e874baa
commit 3085e0a
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3085e0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that it can't be done at package level...
3085e0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested in develop : we can not excludeFiles with complete directory (without fixing/update Yii framework)
https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/models/TemplateConfiguration.php#L226
My idea is to exclude
/var/www/limesurvey/templates/templatename/views/
and/var/www/limesurvey/templates/templatename/pstpl/
, but the test done in https://github.com/LimeSurvey/LimeSurvey/blob/master/framework/utils/CFileHelper.php#L144 always add $base, then test :/var/www/limesurvey/templates/templatename/var/www/limesurvey/templates/templatename/views/
.It's silly .... Yii2 seems to have a 'only' options : yiisoft/yii2@8a506e1 , then for template package we can publish only css/ js/ files/ and (maybe) favicon.ico .
Leave for Yii2 update ?
3085e0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here the discussion of the Yii team about it:
yiisoft/yii#258
Maybe we'll do the PR