]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update settings/ajax/apps/ocs.php
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 4 Sep 2012 09:31:28 +0000 (12:31 +0300)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 4 Sep 2012 09:31:28 +0000 (12:31 +0300)
respect coding style

settings/ajax/apps/ocs.php

index f68843fac31276096fd08b3d18a641e1561377e9..1f3e3b3dfea12a799fcaa81e3815d6bc560131fe 100644 (file)
@@ -7,13 +7,13 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
+require_once '../../../lib/base.php';
 
 OC_JSON::checkAdminUser();
 
 $l = OC_L10N::get('core');
 
-if(OC_Config::getValue('appstoreenabled', true)==false){
+if(OC_Config::getValue('appstoreenabled', true)==false) {
        OCP\JSON::success(array('type' => 'external', 'data' => array()));
 }
 
@@ -27,11 +27,11 @@ $apps=array();
 
 // apps from external repo via OCS
 $catagoryNames=OC_OCSClient::getCategories();
-if(is_array($catagoryNames)){
+if(is_array($catagoryNames)) {
        $categories=array_keys($catagoryNames);
        $page=0;
        $filter='approved';
-       $externalApps=OC_OCSClient::getApplications($categories,$page,$filter);
+       $externalApps=OC_OCSClient::getApplications($categories, $page, $filter);
        foreach($externalApps as $app){
                // show only external apps that aren't enabled yet
                $local=false;