diff options
author | Frank Karlitschek <frank@owncloud.org> | 2014-12-25 09:48:15 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2014-12-25 09:48:15 +0100 |
commit | 3dea2b95c67adfeaf8b9af062b6b586d2d845300 (patch) | |
tree | 30116adc76bb103c4582e254d20a994620557fee /lib | |
parent | 0836ce9cd83aac7a6cd2a6396632f6ddd8b09f3a (diff) | |
download | nextcloud-server-3dea2b95c67adfeaf8b9af062b6b586d2d845300.tar.gz nextcloud-server-3dea2b95c67adfeaf8b9af062b6b586d2d845300.zip |
Automatically detect the edition based on the enterprise_key app.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/util.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index b97c0684629..25fcc7d9172 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -285,8 +285,12 @@ class OC_Util { * @return string */ public static function getEditionString() { - OC_Util::loadVersion(); - return \OC::$server->getSession()->get('OC_Edition'); + if (OC_App::isEnabled('enterprise_key')) { + return "Enterprise"; + } else { + return ""; + } + } /** |