CMSMS 1.12: why change Smarty {config_load} directory?
Posted: Wed Apr 15, 2015 8:32 am
Hi dev team,
After upgrading a CMSMS 1.11.12 test site to CMSMS 1.12, I was surprised to find that my Smarty "config files" stopped loading on all {config_load} tag calls in templates and spreadsheets.
I investigated and found something curious on line 96 of lib/classes/class.Smarty_CMS.php:
So, it seems that all Smarty config files must be moved to the tmp/templates directory. I'm curious why it is better to require that config files be put there, rather than in the existing tmp/configs directory. What was the motivation for this change?
Once again, thanks for all your hard work!
After upgrading a CMSMS 1.11.12 test site to CMSMS 1.12, I was surprised to find that my Smarty "config files" stopped loading on all {config_load} tag calls in templates and spreadsheets.
I investigated and found something curious on line 96 of lib/classes/class.Smarty_CMS.php:
Code: Select all
$this->setConfigDir(cms_join_path($config['root_path'],'tmp','templates'));
Once again, thanks for all your hard work!