本文整理汇总了PHP中Updater::printReleaseNotes方法的典型用法代码示例。如果您正苦于以下问题:PHP Updater::printReleaseNotes方法的具体用法?PHP Updater::printReleaseNotes怎么用?PHP Updater::printReleaseNotes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Updater
的用法示例。
在下文中一共展示了Updater::printReleaseNotes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
}
if (!$error) {
if ($latest_version <= $current_version) {
$should_upgrade = false;
$updater->upgradeLog("Your installation is up to date", true, "Version: " . $current_version);
} elseif (!isset($_POST['do_start_upgrade'])) {
$release_notes = $curl->get($updater->api_path . "?method=getReleaseNotes&key=" . $license_key . "¤t_version=" . $current_version);
if ($curl->getHttpCode() >= 200 && $curl->getHttpCode() < 400) {
$release_notes = json_decode($release_notes, true);
if (isset($release_notes['error'])) {
$updater->upgradeLog("Getting release notes...", false, "API down, try again later #1");
} else {
if (!count($release_notes)) {
$release_notes[$latest_version] = array("No release notes found for this version");
}
$updater->printReleaseNotes($release_notes);
}
} else {
$updater->upgradeLog("Getting release notes...", false, "API down, try again later #2");
}
}
}
if ($should_upgrade && isset($_POST['do_start_upgrade'])) {
if (!$error) {
if (!is_writeable($basepath . "/cachefiles")) {
$updater->upgradeLog("Checking if cache folder is writable...", false, "Fail. Please chmod /cachefiles");
$error = true;
} else {
$updater->upgradeLog("Checking if cache folder is writable...", true, "Success");
}
}