Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-10-07 03:43:33 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-10-07 03:43:50 +0400
commit37b0c37bc4960b9e40e6d3a11c428d2d3c033309 (patch)
tree7a0025924b87836eecf7a7c37bbcbc74d40fc527 /core/Twig.php
parentc94adb68bc72417da8769fbb1b8712a72e406849 (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.php10
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()