diff options
Diffstat (limited to 'settings/ajax/apps/categories.php')
-rw-r--r-- | settings/ajax/apps/categories.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/settings/ajax/apps/categories.php b/settings/ajax/apps/categories.php deleted file mode 100644 index 3bde28be99b..00000000000 --- a/settings/ajax/apps/categories.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/** - * Copyright (c) 2014 Thomas Müller <deepdiver@owncloud.com> - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -OC_JSON::checkAdminUser(); - -$l = OC_L10N::get('settings'); - -$categories = array( - array('id' => 0, 'displayName' => (string)$l->t('Enabled') ), - array('id' => 1, 'displayName' => (string)$l->t('Not enabled') ), -); - -if(OC_Config::getValue('appstoreenabled', true)) { - $categories[] = array('id' => 2, 'displayName' => (string)$l->t('Recommended') ); - // apps from external repo via OCS - $ocs = OC_OCSClient::getCategories(); - foreach($ocs as $k => $v) { - $categories[] = array( - 'id' => $k, - 'displayName' => str_replace('ownCloud ', '', $v) - ); - } -} - -OCP\JSON::success($categories); |