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 'core/QuickForm2.php')
-rw-r--r--core/QuickForm2.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/core/QuickForm2.php b/core/QuickForm2.php
index a41f2e5eb9..23f0690e45 100644
--- a/core/QuickForm2.php
+++ b/core/QuickForm2.php
@@ -9,8 +9,17 @@
* @package Piwik
*/
+namespace Piwik;
+
+use HTML_QuickForm2;
+use HTML_QuickForm2_InvalidArgumentException;
+use HTML_QuickForm2_Node;
+use HTML_QuickForm2_NotFoundException;
+use HTML_QuickForm2_Renderer;
+use Piwik\Url;
+
/**
- * Parent class for forms to be included in Smarty
+ * Manages forms displayed in Twig
*
* For an example, @see Piwik_Login_FormLogin
*
@@ -18,14 +27,14 @@
* @see HTML_QuickForm2, libs/HTML/QuickForm2.php
* @link http://pear.php.net/package/HTML_QuickForm2/
*/
-abstract class Piwik_QuickForm2 extends HTML_QuickForm2
+abstract class QuickForm2 extends HTML_QuickForm2
{
protected $a_formElements = array();
function __construct($id, $method = 'post', $attributes = null, $trackSubmit = false)
{
if (!isset($attributes['action'])) {
- $attributes['action'] = Piwik_Url::getCurrentQueryString();
+ $attributes['action'] = Url::getCurrentQueryString();
}
if (!isset($attributes['name'])) {
$attributes['name'] = $id;