Skip to content
Snippets Groups Projects
Commit 228f1788 authored by Thomas Müller's avatar Thomas Müller
Browse files

add new function to generate the human readable version string based on...

add new function to generate the human readable version string based on version, channel and build number
parent 77bb1680
Branches
No related tags found
No related merge requests found
......@@ -1111,4 +1111,17 @@ class OC_Util {
$t = explode('/', $file);
return array_pop($t);
}
/**
* A human readable string is generated based on version, channel and build number
* @return string
*/
public static function getHumanVersion() {
$version = OC_Util::getVersionString().' ('.OC_Util::getChannel().')';
$build = OC_Util::getBuild();
if(!empty($build) and OC_Util::getChannel() === 'daily') {
$version .= ' Build:' . $build;
}
return $version;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment