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:
Diffstat (limited to 'libs/HTML/QuickForm/Renderer/ObjectFlexy.php')
-rw-r--r--libs/HTML/QuickForm/Renderer/ObjectFlexy.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/HTML/QuickForm/Renderer/ObjectFlexy.php b/libs/HTML/QuickForm/Renderer/ObjectFlexy.php
index 37d45e38d6..6a232ca04e 100644
--- a/libs/HTML/QuickForm/Renderer/ObjectFlexy.php
+++ b/libs/HTML/QuickForm/Renderer/ObjectFlexy.php
@@ -24,7 +24,7 @@
/**
* A concrete renderer for HTML_QuickForm, makes an object from form contents
*/
-require_once dirname(__FILE__) . '/Object.php';
+require_once 'HTML/QuickForm/Renderer/Object.php';
/**
* QuickForm renderer for Flexy template engine, static version.
@@ -116,10 +116,7 @@ class HTML_QuickForm_Renderer_ObjectFlexy extends HTML_QuickForm_Renderer_Object
if($name = $header->getName()) {
$this->_obj->header->$name = $header->toHtml();
} else {
- // $this->_obj->header[$this->_sectionCount] = $header->toHtml();
- $tmp = $this->_obj->header;
- $tmp[$this->_sectionCount] = $header->toHtml();
- $this->_obj->header = $tmp;
+ $this->_obj->header[$this->_sectionCount] = $header->toHtml();
}
$this->_currentSection = $this->_sectionCount++;
} // end func renderHeader