]> source.dussan.org Git - nextcloud-server.git/commitdiff
apps paging is not yet implemented. increase pagesize to 100 as a quickfix
authorFrank Karlitschek <frank@owncloud.org>
Sat, 9 Jun 2012 20:00:28 +0000 (22:00 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Sat, 9 Jun 2012 20:00:28 +0000 (22:00 +0200)
lib/ocsclient.php
settings/apps.php

index 8e976171e937468182c7df2d00d26ea5bedd8032..2888569ad13a66879e2dbea3ddfe7faa88c26d62 100644 (file)
@@ -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){
index 1a829d371a653d1ba0471ae4b5e2c204e4c1d5a4..7908e6cc18b50e36e150b3ef5fd2b5bc8f18aa38 100644 (file)
@@ -63,7 +63,8 @@ usort($apps, 'app_sort');
  $catagoryNames=OC_OCSClient::getCategories();
  if(is_array($catagoryNames)){
        $categories=array_keys($catagoryNames);
-       $externalApps=OC_OCSClient::getApplications($categories);
+       $page=0;
+       $externalApps=OC_OCSClient::getApplications($categories,$page);
        foreach($externalApps as $app){
                // show only external apps that are not exist yet
                $local=false;