Skip to content

Commit

Permalink
Refs #2708 Small changes
Browse files Browse the repository at this point in the history
git-svn-id: http://dev.piwik.org/svn/trunk@6563 59fd770c-687e-43c8-a1e3-f5a4ff64c105
  • Loading branch information
mattab committed Jul 26, 2012
1 parent 7790d76 commit 740316a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 3 additions & 1 deletion plugins/MobileMessaging/API.php
Expand Up @@ -156,8 +156,8 @@ public function addPhoneNumber($phoneNumber)
* send a SMS
*
* @param string $phoneNumber
*
* @return bool true
* @ignore
*/
public function sendSMS($content, $phoneNumber, $from)
{
Expand Down Expand Up @@ -306,6 +306,7 @@ public function validatePhoneNumber($phoneNumber, $verificationCode)
* get phone number list
*
* @return array $phoneNumber => $isValidated
* @ignore
*/
public function getPhoneNumbers()
{
Expand All @@ -326,6 +327,7 @@ public function getPhoneNumbers()
* get activated phone number list
*
* @return array $phoneNumber
* @ignore
*/
public function getActivatedPhoneNumbers()
{
Expand Down
5 changes: 1 addition & 4 deletions plugins/MobileMessaging/SMSProvider.php
Expand Up @@ -38,13 +38,10 @@ static public function factory($providerName)
Piwik_Loader::loadClass($className);
return new $className;
} catch(Exception $e) {

@header('Content-Type: text/html; charset=utf-8');

throw new Exception(
Piwik_TranslateException(
'MobileMessaging_Exception_UnknownProvider',
array($name, implode(', ', array_keys(self::$availableSMSProviders)))
array($name, implode(', ', self::$availableSMSProviders))
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/MobileMessaging/SMSProvider/Mediaburst.php
Expand Up @@ -17,7 +17,7 @@
*/
class Piwik_MobileMessaging_SMSProvider_Mediaburst extends Piwik_MobileMessaging_SMSProvider
{
const SOCKET_TIMEOUT = 10;
const SOCKET_TIMEOUT = 15;

const BASE_API_URL = 'https://api.mediaburst.co.uk/http';
const CHECK_CREDIT_RESOURCE = '/credit.aspx';
Expand Down
4 changes: 1 addition & 3 deletions plugins/PDFReports/API.php
Expand Up @@ -437,8 +437,7 @@ public function generateReport($idReport, $date, $language = false, $outputType
$reportRenderer->setRenderImageInline($outputType == self::OUTPUT_DOWNLOAD ? true : false);

// render report
$site = Piwik_SitesManager_API::getInstance()->getSiteFromId($idSite);
$websiteName = $site['name'];
$websiteName = Piwik_Site::getNameFor($idSite);
$description = str_replace(array("\r", "\n"), ' ', $report['description']);

$reportRenderer->renderFrontPage($websiteName, $prettyDate, $description, $reportMetadata);
Expand Down Expand Up @@ -557,7 +556,6 @@ public function sendReport($idReport, $period = false, $date = false)
if(!isset($GLOBALS['PIWIK_TRACKER_DEBUG']) || !$GLOBALS['PIWIK_TRACKER_DEBUG'])
{
@chmod($outputFilename, 0600);
@unlink($outputFilename);
}
}

Expand Down

0 comments on commit 740316a

Please sign in to comment.