Skip to content
Snippets Groups Projects
Commit 2138ace5 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: problem with development version

parent 69690b3e
No related branches found
No related tags found
No related merge requests found
......@@ -84,10 +84,8 @@ function versionphparray()
*/
function versiondolibarrarray()
{
$dol_version = DOL_VERSION;
preg_match('/^[0-9\.]+([A-Z\-]+)$/i',DOL_VERSION,$regs);
$dol_version = preg_replace('/'.$regs[1].'/','',DOL_VERSION);
// Used for development version
$dol_version = preg_replace('/([A-Z\-]+)$/i','',DOL_VERSION);
return explode('.',$dol_version);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment