enqueueMessage(JText::sprintf('PKG_JLSITEMAP_ERROR_COMPATIBLE_JOOMLA', $this->minimumJoomla), 'error'); return false; } $app = Factory::getApplication(); $jversion = new Version(); // Check PHP if (!(version_compare(PHP_VERSION, $this->minimumPhp) >= 0)) { $app->enqueueMessage(Text::sprintf('PKG_JLSITEMAP_ERROR_COMPATIBLE_PHP', $this->minimumPhp), 'error'); return false; } // Check Joomla version if (!$jversion->isCompatible($this->minimumJoomla)) { $app->enqueueMessage(Text::sprintf('PKG_JLSITEMAP_ERROR_COMPATIBLE_JOOMLA', $this->minimumJoomla), 'error'); return false; } return true; } }