- Output for 7.1.25 - 7.1.27, 7.2.0 - 7.2.16, 7.3.0 - 7.3.3
- Parse error: syntax error, unexpected 'private' (T_PRIVATE), expecting end of file in /in/jVmZl on line 2
Process exited with code 255.
<?php
private function getXMLVersion()
{
$path = JPATH_PLUGINS . '/system/my_plugin_name/my_plugin_name.xml';
$xml = JApplicationHelper::parseXMLInstallFile($path);
return isset($xml['version']) ? trim($xml['version']) : '';
}