aboutsummaryrefslogtreecommitdiff
path: root/app/models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 01:35:06 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 01:35:06 +0100
commitb8c4afadf4bff7ac282ac5933eedccb1c666d873 (patch)
treeaef58395f1aecf027532fdc579b73084edfb8aa8 /app/models/Feed.php
parenta532a023633ac692bd573d4ec29b7871e8e4c19f (diff)
Nouveau fichier constants.php
En particulier pour stocker le numéro de version de FreshRSS utilisé entre autres par https://github.com/marienfressinaud/FreshRSS/issues/174 et centraliser les constantes de chemins Implémente https://github.com/marienfressinaud/FreshRSS/issues/271
Diffstat (limited to 'app/models/Feed.php')
-rw-r--r--app/models/Feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index d76d4cd0e..2618d023f 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -194,7 +194,7 @@ class Feed extends Model {
);
} else {
$feed = new SimplePie ();
- $feed->set_useragent(Translate::t ('freshrss') . '/' . '0.7' . ' (' . PHP_OS . '; http://marienfressinaud.github.io/FreshRSS/) ' . SIMPLEPIE_NAME . '/' . SIMPLEPIE_VERSION);
+ $feed->set_useragent(Translate::t ('freshrss') . '/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ') ' . SIMPLEPIE_NAME . '/' . SIMPLEPIE_VERSION);
$url = str_replace ('&amp;', '&', $this->url);
if ($this->httpAuth != '') {
$url = preg_replace ('#((.+)://)(.+)#', '${1}' . $this->httpAuth . '@${3}', $url);