diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:45:02 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:45:02 +0400 |
commit | 03b4953f008c1063e6d7166143ba844e8c6e89cc (patch) | |
tree | 7b9f0fef13d75417c551f813c98dba1a22f2fff3 /plugins/Feedback/Controller.php | |
parent | 9b2c0a7a450fff3b634f8119c8003ae1d20b97d0 (diff) |
Refactor class Piwik_Common to \Piwik\Core\Common
Notice that auto refactoring has created a nested namespace. Not sure this is what we want - so we might have to edit those nested namespaces afterwards (I think they don't look so good)
Diffstat (limited to 'plugins/Feedback/Controller.php')
-rw-r--r-- | plugins/Feedback/Controller.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Feedback/Controller.php b/plugins/Feedback/Controller.php index 783a64dbb5..3ba8fa5b5a 100644 --- a/plugins/Feedback/Controller.php +++ b/plugins/Feedback/Controller.php @@ -10,7 +10,7 @@ */ use Piwik\Core\Config; use Piwik\Core\Piwik; -use Piwik\Core\Piwik_Common; +use Piwik\Core\Common; /** * @@ -31,10 +31,10 @@ class Piwik_Feedback_Controller extends Piwik_Controller */ function sendFeedback() { - $email = Piwik_Common::getRequestVar('email', '', 'string'); - $body = Piwik_Common::getRequestVar('body', '', 'string'); - $category = Piwik_Common::getRequestVar('category', '', 'string'); - $nonce = Piwik_Common::getRequestVar('nonce', '', 'string'); + $email = Common::getRequestVar('email', '', 'string'); + $body = Common::getRequestVar('body', '', 'string'); + $category = Common::getRequestVar('category', '', 'string'); + $nonce = Common::getRequestVar('nonce', '', 'string'); $view = new Piwik_View('@Feedback/sendFeedback'); $view->feedbackEmailAddress = Config::getInstance()->General['feedback_email_address']; @@ -59,10 +59,10 @@ class Piwik_Feedback_Controller extends Piwik_Controller Piwik_Nonce::discardNonce('Piwik_Feedback.sendFeedback'); $mail = new Piwik_Mail(); - $mail->setFrom(Piwik_Common::unsanitizeInputValue($email)); + $mail->setFrom(Common::unsanitizeInputValue($email)); $mail->addTo($view->feedbackEmailAddress, 'Piwik Team'); $mail->setSubject('[ Feedback form - Piwik ] ' . $category); - $mail->setBodyText(Piwik_Common::unsanitizeInputValue($body) . "\n" + $mail->setBodyText(Common::unsanitizeInputValue($body) . "\n" . 'Piwik ' . Piwik_Version::VERSION . "\n" . 'IP: ' . Piwik_IP::getIpFromHeader() . "\n" . 'URL: ' . Piwik_Url::getReferer() . "\n"); |