From fe1087fbb72959a2da5c71ef405e96c84c94381e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Nov 2010 19:11:54 +0300 Subject: implement a simple pseudo-dashboard feed; display feeds having update errors there instead of client-based 'no feed selected' whiteBox plug (closes #189) --- backend.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backend.php') 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 ""; + return; + } + /* Updating a label ccache means recalculating all of the caches * so for performance reasons we don't do that here */ -- cgit v1.2.3