This commit is contained in:
Lukas Reschke 2013-02-09 23:37:42 +01:00
parent 73c44dfa1f
commit bd2f8980cd
2 changed files with 6 additions and 6 deletions

View File

@ -683,10 +683,10 @@ class OC_App{
* @return array, multi-dimensional array of apps. Keys: id, name, type, typename, personid, license, detailpage, preview, changed, description
*/
public static function getAppstoreApps( $filter = 'approved' ) {
$catagoryNames = OC_OCSClient::getCategories();
if ( is_array( $catagoryNames ) ) {
$categoryNames = OC_OCSClient::getCategories();
if ( is_array( $categoryNames ) ) {
// Check that categories of apps were retrieved correctly
if ( ! $categories = array_keys( $catagoryNames ) ) {
if ( ! $categories = array_keys( $categoryNames ) ) {
return false;
}

View File

@ -23,9 +23,9 @@ if(is_null($enabledApps)) {
$apps=array();
// apps from external repo via OCS
$catagoryNames=OC_OCSClient::getCategories();
if(is_array($catagoryNames)) {
$categories=array_keys($catagoryNames);
$categoryNames=OC_OCSClient::getCategories();
if(is_array($categoryNames)) {
$categories=array_keys($categoryNames);
$page=0;
$filter='approved';
$externalApps=OC_OCSClient::getApplications($categories, $page, $filter);