diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-10-07 03:43:33 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-10-07 03:43:50 +0400 |
commit | 37b0c37bc4960b9e40e6d3a11c428d2d3c033309 (patch) | |
tree | 7a0025924b87836eecf7a7c37bbcbc74d40fc527 /core/Twig.php | |
parent | c94adb68bc72417da8769fbb1b8712a72e406849 (diff) |
Move deadlock info logging to Db.php, fix core updater translation regression, fix core updater css regression, change logger_message level column to string, and delete unneeded logger tables if not empty. Also includes some changes to travis build.
Diffstat (limited to 'core/Twig.php')
-rw-r--r-- | core/Twig.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/Twig.php b/core/Twig.php index 0520d242d7..3155f5b0d8 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -71,6 +71,16 @@ class Twig $this->addFunction_sparkline(); $this->addFunction_postEvent(); $this->addFunction_isPluginLoaded(); + $this->addFunction_getJavascriptTranslations(); + } + + protected function addFunction_getJavascriptTranslations() + { + $getJavascriptTranslations = new Twig_SimpleFunction( + 'getJavascriptTranslations', + array(Translate::getInstance(), 'getJavascriptTranslations') + ); + $this->twig->addFunction($getJavascriptTranslations); } protected function addFunction_isPluginLoaded() |