Created
August 19, 2014 11:24
-
-
Save escopecz/5aa413e1107f5cc72277 to your computer and use it in GitHub Desktop.
Check / get / compare Joomla version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (version_compare(JVERSION, '3.0.0', '>')) | |
{ | |
// code for J!3.0.0 and newer | |
} | |
else | |
{ | |
// code for older J! versions | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment