From 64090974adf8343218d307436a1c6d6923bef3fb Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sun, 3 May 2015 19:27:45 +0200 Subject: mimic core's getEditionString() to comply with code guidelines --- lib/util.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lib/util.php (limited to 'lib') 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 @@ +. + * + */ + +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 -- cgit v1.2.3