Automatically detect the edition based on the enterprise_key app.

This commit is contained in:
Frank Karlitschek 2014-12-25 09:48:15 +01:00
parent 0836ce9cd8
commit 3dea2b95c6
2 changed files with 6 additions and 5 deletions

View file

@ -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 "";
}
}
/**

View file

@ -8,9 +8,6 @@ $OC_Version=array(7, 8, 1, 0);
// The human readable string
$OC_VersionString='8.0 pre alpha';
// The ownCloud edition
$OC_Edition='';
// The ownCloud channel
$OC_Channel='git';