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:
authordiosmosis <benakamoorthi@fastmail.fm>2014-02-06 07:35:57 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-02-06 07:36:29 +0400
commitb8e93ed82bee138d1207d31803bf248abcea4d3b (patch)
tree71b4bb31959e0d559296737874a629a458fa56e9 /core/View.php
parentbcf38478f7b8db68d855c5fcb90ec144f45acfc5 (diff)
Move containing <div> rendering of UIControl to new template, add new custom Twig tag to render Views and allow selected segment of segment selector to be determined by PHP code.
Diffstat (limited to 'core/View.php')
-rw-r--r--core/View.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/View.php b/core/View.php
index ba60198ddd..b0d8e5562f 100644
--- a/core/View.php
+++ b/core/View.php
@@ -150,11 +150,13 @@ class View implements ViewInterface
/**
* Returns the variables to bind to the template when rendering.
*
+ * @param array $override Template variable override values. Mainly useful
+ * when including View templates in other templates.
* @return array
*/
- public function getTemplateVars()
+ public function getTemplateVars($override = array())
{
- return $this->templateVars;
+ return $override + $this->templateVars;
}
/**