/** * check if this is a Joomla 3 setup * used in Joomla 2.5 code to show error after upgrade to Joomla 3 */ public static function isJoomla3($extension_name = '') { if (version_compare(JVERSION, '3.0', '<')) { return false; } if ($extension_name) { nnProtect::throwError(JText::sprintf('NN_JOOMLA2_VERSION_ON_JOOMLA3', JText::_($extension_name))); } return true; }