From 51f6f91758bfc57e52e8e9316495ae723d7c2332 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 3 Feb 2009 21:45:31 +0300 Subject: remove manual download dialog; make offline updates automatic --- modules/backend-rpc.php | 8 +++++--- modules/popup-dialog.php | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 3b5b2d63f..967e97aea 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -517,10 +517,12 @@ if ($subop == "download") { $stage = (int) $_REQUEST["stage"]; $cid = db_escape_string($_REQUEST["cid"]); - $amount = (int) $_REQUEST["amount"]; - $unread_only = db_escape_string($_REQUEST["unread_only"]); + //$amount = (int) $_REQUEST["amount"]; + //$unread_only = db_escape_string($_REQUEST["unread_only"]); + //if (!$amount) $amount = 50; - if (!$amount) $amount = 50; + $amount = 100; + $unread_only = true; print ""; diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 8a1b20209..2ba0740c4 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -461,7 +461,7 @@ return; } - if ($id == "offlineDownload") { +/* if ($id == "offlineDownload") { print "
".__('Download articles')."
"; print "
"; @@ -500,7 +500,7 @@ print "
"; return; - } + } */ print "
Internal Error
-- cgit v1.2.3-54-g00ecf