aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ocsclient.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-06-09 22:00:28 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-06-09 22:00:28 +0200
commit3947aa3ef7320805545e5339c605cf8cb81475dd (patch)
treefba14185cff8b1d146b306d3ca41578e2382552b /lib/ocsclient.php
parent995f9c7348fcc6dd25a95f81030e7d3b6f04d6c3 (diff)
downloadnextcloud-server-3947aa3ef7320805545e5339c605cf8cb81475dd.tar.gz
nextcloud-server-3947aa3ef7320805545e5339c605cf8cb81475dd.zip
apps paging is not yet implemented. increase pagesize to 100 as a quickfix
Diffstat (limited to 'lib/ocsclient.php')
-rw-r--r--lib/ocsclient.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ocsclient.php b/lib/ocsclient.php
index 8e976171e93..2888569ad13 100644
--- a/lib/ocsclient.php
+++ b/lib/ocsclient.php
@@ -85,7 +85,7 @@ class OC_OCSClient{
*
* This function returns a list of all the applications on the OCS server
*/
- public static function getApplications($categories){
+ public static function getApplications($categories,$page){
if(OC_Config::getValue('appstoreenabled', true)==false){
return(array());
}
@@ -95,7 +95,7 @@ class OC_OCSClient{
}else{
$categoriesstring=$categories;
}
- $url=OC_OCSClient::getAppStoreURL().'/content/data?categories='.urlencode($categoriesstring).'&sortmode=new&page=0&pagesize=10';
+ $url=OC_OCSClient::getAppStoreURL().'/content/data?categories='.urlencode($categoriesstring).'&sortmode=new&page='.urlencode($page).'&pagesize=100';
$apps=array();
$xml=@file_get_contents($url);
if($xml==FALSE){