示例#1
0
 /**
  * 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 = '')
 {
     if (!version_compare(JVERSION, '3.0', '>=')) {
         return false;
     }
     if ($extension) {
         NNProtect::throwError(JText::sprintf('NN_JOOMLA2_VERSION_ON_JOOMLA3', JText::_($extension)));
     }
     return true;
 }