/** * Defines the installation language code * * @return string */ public static function getInstallationLng() { return \Includes\Utils\ConfigParser::getInstallationLng(); }
/** * Check if LC is installed * * @return void */ public static function checkIsLCInstalled() { if (!\Includes\Utils\ConfigParser::getOptions(array('database_details', 'database'))) { $link = \Includes\Utils\URLManager::getShopURL('install.php'); $message = \Includes\Utils\ConfigParser::getInstallationLng() === 'ru' ? '<a href="' . $link . '">Запустите установку магазина</a>' : '<a href="' . $link . '">Click here</a> to run the installation wizard.'; static::showErrorPage(self::ERROR_NOT_INSTALLED, $message); } }