46
edits
m (ajout comparaison version avec version_compare) |
mNo edit summary |
||
| Line 418: | Line 418: | ||
Il également possible de faire appel à la fonction version_compare de php, ce qui donne ici : | Il également possible de faire appel à la fonction version_compare de php, ce qui donne ici : | ||
<syntaxhighlight lang="PHP"> | <syntaxhighlight lang="PHP"> | ||
if ((float) DOL_VERSION >= 5.0) { //mycode for 5.0 only; } // For dolibarr 5.0.* | if ((float) DOL_VERSION >= 5.0) { //mycode for 5.0 only; } // For dolibarr 5.0.* | ||
edits