summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-04 19:11:54 +0300
committerAndrew Dolgov <[email protected]>2010-11-04 19:11:54 +0300
commitfe1087fbb72959a2da5c71ef405e96c84c94381e (patch)
tree0baa4d5445ee65a483a796e17ee8c6db839b547c /backend.php
parent85a922895f2865a658f98a7d0e795aec05da3d06 (diff)
implement a simple pseudo-dashboard feed; display feeds having update errors there instead of client-based 'no feed selected' whiteBox plug (closes #189)
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 252548167..0182b2436 100644
--- a/backend.php
+++ b/backend.php
@@ -289,6 +289,15 @@
$csync = $_REQUEST["csync"];
$order_by = db_escape_string($_REQUEST["order_by"]);
+ /* Feed -5 is a special case: it is used to display auxiliary information
+ * when there's nothing to load - e.g. no stuff in fresh feed */
+
+ if ($feed == -5) {
+ generate_dashboard_feed($link);
+ print "</reply>";
+ return;
+ }
+
/* Updating a label ccache means recalculating all of the caches
* so for performance reasons we don't do that here */