public function getInstallAction($version = null) { if ($version->component === null) $this->_action = 'INSTALL'; else if ($version->prefix != 'kunena_') $this->_action = 'MIGRATE'; else if (version_compare ( strtolower(KunenaForum::version()), strtolower($version->version), '>' )) $this->_action = 'UPGRADE'; else if (version_compare ( strtolower(KunenaForum::version()), strtolower($version->version), '<' )) $this->_action = 'DOWNGRADE'; else if (KunenaForum::versionBuild() && KunenaForum::versionBuild() > $version->build) $this->_action = 'UP_BUILD'; else if (KunenaForum::versionBuild() && KunenaForum::versionBuild() < $version->build) $this->_action = 'DOWN_BUILD'; else $this->_action = 'REINSTALL'; return $this->_action; }
/** * Retrieve installed Kunena version as string. * * @return string "Kunena X.Y.Z | YYYY-MM-DD | BUILDNUMBER [versionname]" */ static function getVersionHTML() { return 'Kunena '.KunenaForum::version().' | '.KunenaForum::versionDate().' | '.KunenaForum::versionBuild().' [ '.KunenaForum::versionName().' ]'; }