summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-01-20 12:39:29 -0800
committerAndreas Gohr <andi@splitbrain.org>2013-01-20 12:39:29 -0800
commited66f2f0d753a8c11439116a5bc330054afdd48e (patch)
treec299ec6a65d424c2ea5f71944d05d1150bf19026 /inc
parent804f11b20e4a4f72cc45900e46f074fbd39b4649 (diff)
parentf8591821bac23569788706524f8d6b14bd73775c (diff)
downloadrpg-ed66f2f0d753a8c11439116a5bc330054afdd48e.tar.gz
rpg-ed66f2f0d753a8c11439116a5bc330054afdd48e.tar.bz2
Merge pull request #155 from gturri/fixPageVersions
Don't remove page version from result if uneeded
Diffstat (limited to 'inc')
-rw-r--r--inc/RemoteAPICore.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/RemoteAPICore.php b/inc/RemoteAPICore.php
index c04a14f5c..fef0b81dd 100644
--- a/inc/RemoteAPICore.php
+++ b/inc/RemoteAPICore.php
@@ -654,7 +654,9 @@ class RemoteAPICore {
if(count($revisions)>0 && $first==0) {
array_unshift($revisions, ''); // include current revision
- array_pop($revisions); // remove extra log entry
+ if ( count($revisions) > $conf['recent'] ){
+ array_pop($revisions); // remove extra log entry
+ }
}
if(count($revisions) > $conf['recent']) {