summaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-02-04 19:07:33 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-02-04 19:07:33 +0100
commit575d0002cc3839760f0a389eb4af8cd7d23b74c6 (patch)
treee1ba9e738c44f1ff989f9997b678cf84e871326e /app/Controllers/feedController.php
parent797dd21282214c2da6c422d7192dfe8c1de2c824 (diff)
Rafraîchissement plus rapide en évitant une requête
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/351
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index cf9c993d5..918f007fd 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -14,15 +14,15 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
);
}
}
-
- $this->catDAO = new FreshRSS_CategoryDAO ();
- $this->catDAO->checkDefault ();
}
public function addAction () {
@set_time_limit(300);
if (Minz_Request::isPost ()) {
+ $this->catDAO = new FreshRSS_CategoryDAO ();
+ $this->catDAO->checkDefault ();
+
$url = Minz_Request::param ('url_rss');
$cat = Minz_Request::param ('category', false);
if ($cat === false) {
@@ -309,6 +309,9 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
public function massiveImportAction () {
@set_time_limit(300);
+ $this->catDAO = new FreshRSS_CategoryDAO ();
+ $this->catDAO->checkDefault ();
+
$entryDAO = new FreshRSS_EntryDAO ();
$feedDAO = new FreshRSS_FeedDAO ();