diff options
Diffstat (limited to '')
-rw-r--r-- | include/functions.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 7012db248..09ac3b668 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -1600,4 +1600,13 @@ function get_privacy_level_options() } return $options; } + + +/** + * return the branch from the version. For example version 2.2.4 is for branch 2.2 + */ +function get_branch_from_version($version) +{ + return implode('.', array_slice(explode('.', $version), 0, 2)); +} ?>
\ No newline at end of file |