Tom wrote:
> The various patches which update srweb to use Smarty 3 have gone live as a
> result of the doing activity today. The website itself is also now running on
> Smarty 3 since Apache was restarted a few moments ago.
>
> Anyone who has their own Apache instances to test srweb will need to be aware
> of this change. You will need to install Smart 3 and change the srweb
> configuration file to point to the correct location.
It should be noted that there will, for a while, be some patches which
are still based on the older Smarty 2. Just as Smarty 3 is not
compatible with v2 (at least in the configuration we've deployed), v2
is not compatible with v3.
As a result, users may need to keep both versions around for the
moment. Thankfully some git history magic can be done to automatically
pick up the right one. For example, I'm now running with this in my
local.config.inc.php:
$__revs_ahead = shell_exec("git rev-list 1e38e1c7c38a902fd2..HEAD | wc -l");
if ($__revs_ahead == 0) {
define('SMARTY_DIR', '/home/peter/public_html/sr/Smarty-2.6.28/libs/');
} else {
define('SMARTY_DIR', '/usr/share/php/smarty3/');
}
Yes, it's a massive hack, but hopefully it can go away shortly anyway.
Peter