'danpros/htmly', 'prerelease' => config("prerelease"), )); $dir = 'cache/'; if (!is_dir($dir)) { mkdir($dir, 0775, true); } if (defined("JSON_PRETTY_PRINT")) { file_put_contents( 'cache/installedVersion.json', json_encode(array( "tag_name" => constant('HTMLY_VERSION') ), JSON_PRETTY_PRINT), LOCK_EX); } else { file_put_contents( 'cache/installedVersion.json', json_encode(array( "tag_name" => constant('HTMLY_VERSION') )), LOCK_EX ); } if (empty($updater->getNewestInfo())) { echo '
Version: '. $info['tag_name'] .'
'; echo 'Important: Please always backup your files before upgrading to newer version.
'; echo ''.i18n('Update_to').' '. $info['tag_name'] . ' '.i18n('now').'
'; } else { echo 'Installed Version: '. $info['tag_name'] .'
'; echo '