1:首先找到source/admincp目录下的admincp_main.php文件
2:搜索$shownotice = '';将其下三个if判定注释掉既可,注释后的代码如下:
$shownotice = '';
/*
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && ($_G['setting']['showpatchnotice'] == 1 || !isset($_G['cookie']['checkpatch']))) {
$Discuz!_patch = new Discuz!_patch();
if($_G['setting']['showpatchnotice'] == 1) {
$notice = $Discuz!_patch->fetch_patch_notice();
if($notice['data']) {
$shownotice = '<div class="notice"><a href="'.$basescript.' action=patch" id="notice">'.($notice['fixed'] $lang['patch_fix_complete'] : $lang['patch_fix_rigth_now']).'</a></div>';
}
}
if(!isset($_G['cookie']['checkpatch'])) {
$Discuz!_patch->check_patch();
}
}
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !$shownotice && $_G['setting']['upgrade']) {
$shownotice = '<div class="notice"><a href="'.$basescript.' action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
}
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkupgrade'])) {
$Discuz!_upgrade = new Discuz!_upgrade();
if($Discuz!_upgrade->check_upgrade()) {
if(empty($shownotice)) {
$shownotice = '<div class="notice"><a href="'.$basescript.' action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
}
}
dsetcookie('checkupgrade', 1, 7200);
}*/
管理员后台工具清空缓存,浏览器清空缓存,就不会再提示了。
PS:推荐是经常升级,我删除该提示只是因为内网使用,不需要更新,而且改了一些文件,不想覆盖了重新改。
如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。
如本文对您有用,捐赠和留言 将是对我最好的支持~(捐赠可转为站内积分)
如愿意,请向朋友推荐本站,谢谢。
尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。