If no secret key is available, don't try to use cache
authorkaldari <rkaldari@wikimedia.org>
Tue, 3 Mar 2015 22:19:35 +0000 (14:19 -0800)
committerkaldari <rkaldari@wikimedia.org>
Wed, 4 Mar 2015 17:27:23 +0000 (09:27 -0800)
commit50c50bea2e21e1e5440828b8ba7086fe18348cc3
tree16f8cf997e82e27086a286bd993e1ad3bebaff68
parent74a2757d62f8560d3c809be612bb90d9f626622d
If no secret key is available, don't try to use cache

In the unlikely event that no secret key is available, we shouldn't
rely on the cache at all in TemplateParser.

Adding new compileForEval() function and and moving eval() outside
of if statement to prevent code duplication.

Also, if the template fails integrity check, generate a notice
instead of throwing an exception in case we change the secret key.

Change-Id: Id44fdcc9533fc8a9c77e84fcebaa064f602477c6
includes/TemplateParser.php