diff options
author | Georg Ehrke <developer@georgehrke.com> | 2015-05-03 20:27:45 +0300 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2015-09-22 19:05:43 +0300 |
commit | 64090974adf8343218d307436a1c6d6923bef3fb (patch) | |
tree | 9a50dd448636e2e6e8b0275e9d99a9a9cc15f4b8 /lib | |
parent | 3bdf3b5a96afa48511e5d8a56cc7c620329dc0c8 (diff) |
mimic core's getEditionString() to comply with code guidelines
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php new file mode 100644 index 00000000..318033e2 --- /dev/null +++ b/lib/util.php @@ -0,0 +1,38 @@ +<?php + +/** + * ownCloud - firstrunwizard App + * + * @author Georg Ehrke + * @copyright 2015 Georg Ehrke georg@ownCloud.com + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE + * License as published by the Free Software Foundation; either + * version 3 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU Affero General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCA\FirstRunWizard; + +class Util { + + /** + * mimic \OC_Util::getEditionString() + * @return string + */ + public static function getEdition() { + if (\OC::$server->getAppManager()->isEnabledForUser('enterprise_key')) { + return "Enterprise"; + } + return ''; + } +}
\ No newline at end of file |