I used to be able to check the current Joomla version <3.8 via bash quite easily:
Code: Select all
php -r 'define("JPATH_PLATFORM","TEST");require("SITEPATH/libraries/cms/version/version.php");$version=new JVersion;echo $version->getShortVersion();'
Code: Select all
php -r 'define("JPATH_PLATFORM","TEST");require("SITEPATH/libraries/src/Version.php");$version=new Version;echo $version->getShortVersion();'
Code: Select all
PHP Fatal error: Class 'Version' not found in Command line code on line 1
What am I doing wrong?
thanks