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-08-05 02:46:23 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-08-05 02:46:23 +0400
commit2615404eab2e96048583caccf86248af2dd90d9b (patch)
tree0d85d6b4dcc2bb61bd244d29b99aaf2378fbc131 /core/Twig.php
parentcf8d0a51591e39ecf8aa8f4c09b5672ec2d312cd (diff)
Refs #4040, #4041, move visualization only view properties to separate visualizations, changed JavaScript properties to 'client side parameters' and 'overridable properties' to 'client side properties', changed keep_summary_row from a JavaScript property to a client side property, allowed visualization properties to be inherited, fixed system that allowed visualizations to set custom defaults for property values, modified behavior of datatable_css_class viewdatatable property, allow view properties to be customized in metadata based on the visualization used, and tweaks to UI Integration tests.
Diffstat (limited to 'core/Twig.php')
-rw-r--r--core/Twig.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Twig.php b/core/Twig.php
index 5a316c65ce..f65825065b 100644
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -73,6 +73,15 @@ class Twig
$this->addFunction_loadJavascriptTranslations();
$this->addFunction_sparkline();
$this->addFunction_postEvent();
+ $this->addFunction_isPluginLoaded();
+ }
+
+ protected function addFunction_isPluginLoaded()
+ {
+ $isPluginLoadedFunction = new Twig_SimpleFunction('isPluginLoaded', function ($pluginName) {
+ return PluginsManager::getInstance()->isPluginLoaded($pluginName);
+ });
+ $this->twig->addFunction($isPluginLoadedFunction);
}
protected function addFunction_includeAssets()