diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-01 06:08:36 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-01 06:08:36 +0400 |
commit | 916848085adcc6504c9cb1757e8fc9cba3eee468 (patch) | |
tree | be48f87a4ebbcb93277059ff6640292061f99900 /plugins/MobileMessaging/SMSProvider/Clockwork.php | |
parent | 84bf3a5eab6ae6529690460e044fd7c908305b71 (diff) |
* Enabling Twig 'strict_variables' so that we write best code possible, and learn early if some tpl code is not valid. Fixing few bugs that this uncovered
* refactoring the percent column label in getPercentVisitColumn()
* removing indexBeforeMenu and putting directly in parent template
Refs #4019
Diffstat (limited to 'plugins/MobileMessaging/SMSProvider/Clockwork.php')
-rw-r--r-- | plugins/MobileMessaging/SMSProvider/Clockwork.php | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/plugins/MobileMessaging/SMSProvider/Clockwork.php b/plugins/MobileMessaging/SMSProvider/Clockwork.php index b7a50dfe02..faf5effbc7 100644 --- a/plugins/MobileMessaging/SMSProvider/Clockwork.php +++ b/plugins/MobileMessaging/SMSProvider/Clockwork.php @@ -69,17 +69,21 @@ class Piwik_MobileMessaging_SMSProvider_Clockwork extends Piwik_MobileMessaging_ $timeout = self::SOCKET_TIMEOUT; - $result = Piwik_Http::sendHttpRequestBy( - Piwik_Http::getTransportMethod(), - $url, - $timeout, - $userAgent = null, - $destinationPath = null, - $file = null, - $followDepth = 0, - $acceptLanguage = false, - $acceptInvalidSslCertificate = true - ); + try { + $result = Piwik_Http::sendHttpRequestBy( + Piwik_Http::getTransportMethod(), + $url, + $timeout, + $userAgent = null, + $destinationPath = null, + $file = null, + $followDepth = 0, + $acceptLanguage = false, + $acceptInvalidSslCertificate = true + ); + } catch(Exception $e) { + $result = self::ERROR_STRING . " " . $e->getMessage(); + } if (strpos($result, self::ERROR_STRING) !== false) { throw new Piwik_MobileMessaging_APIException( |