mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
feature 2365 added: Piwigo version is written in the database (as
"piwigo_db_version" in the config table). We only store the branch, not the release : 2.3 and not 2.3.1, because database structure is not changing between minor releases. git-svn-id: http://piwigo.org/svn/trunk@11511 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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));
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user