diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-16 19:17:36 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-16 19:17:36 +0000 |
commit | f10dcc4dcaefb086f27df5535c619073e0665b2e (patch) | |
tree | 5eeb0ba4c52090d77e46e897f5f40fd2b02bd224 /inc/subscription.php | |
parent | b81c3dc020112e09a2a1342b95aa55e47e9a6c90 (diff) | |
parent | 01486f869816b6358d14a710f3d89b190e9391b4 (diff) | |
download | rpg-f10dcc4dcaefb086f27df5535c619073e0665b2e.tar.gz rpg-f10dcc4dcaefb086f27df5535c619073e0665b2e.tar.bz2 |
Merge pull request #169 from splitbrain/diff_navigation
Added diff navigation
Diffstat (limited to 'inc/subscription.php')
-rw-r--r-- | inc/subscription.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/subscription.php b/inc/subscription.php index adf1b821c..298e7c12b 100644 --- a/inc/subscription.php +++ b/inc/subscription.php @@ -340,7 +340,8 @@ class Subscription { while(!is_null($rev) && $rev['date'] >= $lastupdate && ($INPUT->server->str('REMOTE_USER') === $rev['user'] || $rev['type'] === DOKU_CHANGE_TYPE_MINOR_EDIT)) { - $rev = getRevisions($rev['id'], $n++, 1); + $pagelog = new PageChangeLog($rev['id']); + $rev = $pagelog->getRevisions($n++, 1); $rev = (count($rev) > 0) ? $rev[0] : null; } @@ -519,9 +520,10 @@ class Subscription { * @return bool */ protected function send_digest($subscriber_mail, $id, $lastupdate) { + $pagelog = new PageChangeLog($id); $n = 0; do { - $rev = getRevisions($id, $n++, 1); + $rev = $pagelog->getRevisions($n++, 1); $rev = (count($rev) > 0) ? $rev[0] : null; } while(!is_null($rev) && $rev > $lastupdate); |