diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2013-10-29 02:34:36 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2013-10-29 02:34:36 +0400 |
commit | 55c053f05b764b899f0b7bb1c8ec71f3685c4a11 (patch) | |
tree | 20660dcb77658b25fa201f3db9db466ff910bd84 /plugins/Feedback/Controller.php | |
parent | ceb09d167b9d207ba8ab62cb560a2576d1a8e021 (diff) |
Remove Piwik::translateException function.
Diffstat (limited to 'plugins/Feedback/Controller.php')
-rw-r--r-- | plugins/Feedback/Controller.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Feedback/Controller.php b/plugins/Feedback/Controller.php index 5b7ecc50e3..412cea69ab 100644 --- a/plugins/Feedback/Controller.php +++ b/plugins/Feedback/Controller.php @@ -54,16 +54,16 @@ class Controller extends \Piwik\Plugin\Controller || strpos($email, 'probe@') !== false || strpos($body, '<probe') !== false ) { - throw new Exception(Piwik::translateException('Feedback_ExceptionBodyLength', array($minimumBodyLength))); + throw new Exception(Piwik::translate('Feedback_ExceptionBodyLength', array($minimumBodyLength))); } if (!Piwik::isValidEmailString($email)) { - throw new Exception(Piwik::translateException('UsersManager_ExceptionInvalidEmail')); + throw new Exception(Piwik::translate('UsersManager_ExceptionInvalidEmail')); } if (preg_match('/https?:/i', $body)) { - throw new Exception(Piwik::translateException('Feedback_ExceptionNoUrls')); + throw new Exception(Piwik::translate('Feedback_ExceptionNoUrls')); } if (!Nonce::verifyNonce('Feedback.sendFeedback', $nonce)) { - throw new Exception(Piwik::translateException('General_ExceptionNonceMismatch')); + throw new Exception(Piwik::translate('General_ExceptionNonceMismatch')); } Nonce::discardNonce('Feedback.sendFeedback'); |