diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-01-20 12:39:29 -0800 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-01-20 12:39:29 -0800 |
commit | ed66f2f0d753a8c11439116a5bc330054afdd48e (patch) | |
tree | c299ec6a65d424c2ea5f71944d05d1150bf19026 | |
parent | 804f11b20e4a4f72cc45900e46f074fbd39b4649 (diff) | |
parent | f8591821bac23569788706524f8d6b14bd73775c (diff) | |
download | rpg-ed66f2f0d753a8c11439116a5bc330054afdd48e.tar.gz rpg-ed66f2f0d753a8c11439116a5bc330054afdd48e.tar.bz2 |
Merge pull request #155 from gturri/fixPageVersions
Don't remove page version from result if uneeded
-rw-r--r-- | inc/RemoteAPICore.php | 4 |
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']) { |