summaryrefslogtreecommitdiff
path: root/classes/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-01-31 16:27:51 +0400
committerAndrew Dolgov <[email protected]>2012-01-31 16:27:51 +0400
commit8437c066e1785511d7baaf3340c950d8ab66229c (patch)
treef7aa4298920e7561dff8f9f3adfc4c01359285da /classes/backend.php
parent118f41806fec499475659c7af53d75b6b87ab887 (diff)
implement digestTest back
misc digest updates and improvements
Diffstat (limited to 'classes/backend.php')
-rw-r--r--classes/backend.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/classes/backend.php b/classes/backend.php
index 19938344d..4d1e99a61 100644
--- a/classes/backend.php
+++ b/classes/backend.php
@@ -10,7 +10,17 @@ class Backend extends Handler {
function digestSend() {
define('PREFS_NO_CACHE', true);
- send_headlines_digests($this->link, 100, true);
+ send_headlines_digests($this->link);
+ }
+
+ function digestTest() {
+ header("Content-type: text/html");
+
+ $rv = prepare_headlines_digest($this->link, $_SESSION['uid'], 1, 1000);
+
+ $rv[3] = "<pre>" . $rv[3] . "</pre>";
+
+ print_r($rv);
}
function help() {