This commit is contained in:
fen 2013-12-12 21:44:39 +08:00
commit ae1e349647
2 changed files with 8 additions and 4 deletions

View File

@ -29,5 +29,12 @@ include 'menu.php';
<?php
include 'copyright.php';
include 'common-js.php';
include 'footer.php';
?>
<script>
(function () {
if (window.sessionStorage) {
sessionStorage.removeItem('update');
}
})();
</script>
<?php include 'footer.php'; ?>

View File

@ -104,9 +104,6 @@ class Widget_Upgrade extends Widget_Abstract_Options implements Widget_Interface
$this->update(array('value' => 'Typecho ' . Typecho_Common::VERSION),
$this->db->sql()->where('name = ?', 'generator'));
/** 删除更新cookie */
Typecho_Cookie::delete('__typecho_check_version');
$this->widget('Widget_Notice')->set(empty($message) ? _t("升级已经完成") : $message,
empty($message) ? 'success' : 'notice');
}