aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2016-08-31 15:56:59 +0200
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2016-08-31 15:56:59 +0200
commite098119441b5a2d15bb2ba395dcdc90a0c345e2c (patch)
tree02f02bfbf00282c3dd328f2034b3138b9d7aa1b6 /app
parentc25fdbcc0990b637e305665a456e52e1aa3dec0a (diff)
parent57705c679b56b0f9eb5c343fd24f15fc80926b5b (diff)
Merge branch 'FreshRSS/dev' into PostgreSQL
Diffstat (limited to 'app')
-rw-r--r--app/Models/Feed.php4
-rw-r--r--app/Models/StatsDAO.php1
2 files changed, 3 insertions, 2 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 986cc5015..6104b1e31 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -241,7 +241,7 @@ class FreshRSS_Feed extends Minz_Model {
if ((!$mtime) || $feed->error()) {
$errorMessage = $feed->error();
- throw new FreshRSS_Feed_Exception(($errorMessage == '' ? 'Feed error' : $errorMessage) . ' [' . $url . ']');
+ throw new FreshRSS_Feed_Exception(($errorMessage == '' ? 'Unknown error for feed' : $errorMessage) . ' [' . $url . ']');
}
$links = $feed->get_links('self');
@@ -446,7 +446,7 @@ class FreshRSS_Feed extends Minz_Model {
Minz_Log::warning('Invalid JSON for PubSubHubbub: ' . $this->url);
return false;
}
- $callbackUrl = checkUrl(FreshRSS_Context::$system_conf->base_url . 'api/pshb.php?k=' . $hubJson['key']);
+ $callbackUrl = checkUrl(Minz_Request::getBaseUrl() . '/api/pshb.php?k=' . $hubJson['key']);
if ($callbackUrl == '') {
Minz_Log::warning('Invalid callback for PubSubHubbub: ' . $this->url);
return false;
diff --git a/app/Models/StatsDAO.php b/app/Models/StatsDAO.php
index 3f5bf8515..bbafa9613 100644
--- a/app/Models/StatsDAO.php
+++ b/app/Models/StatsDAO.php
@@ -168,6 +168,7 @@ SQL;
$stm->execute();
$res = $stm->fetchAll(PDO::FETCH_NAMED);
+ $repartition = array();
foreach ($res as $value) {
$repartition[(int) $value['period']] = (int) $value['count'];
}