diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-25 14:38:30 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-25 14:38:30 +0800 |
| commit | 7168e743fe802cc977ce8fe990f09bf87ba46eaa (patch) | |
| tree | 0a000a677c25bfd188051c7f23565fbfa89005c2 | |
| parent | 2c028cef411a2eae19c82b7b89fedb9b8b191b4f (diff) | |
:bug: Fix: 使用 $_SEESSION 变量导致报错
| -rw-r--r-- | includes/header.php | 2 | ||||
| -rw-r--r-- | themeConfig.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/header.php b/includes/header.php index fc5c6ec..4130d78 100644 --- a/includes/header.php +++ b/includes/header.php @@ -141,7 +141,7 @@ <h1><?php $this->title(); ?></h1> <div class="header-meta"> <?php if($this->fields->meta==''): - if($_SESSION["isPageArchive"]!=true){ ?> + if(!$_SESSION["isPageArchive"]){ ?> <div class="header-meta-line-one"> <?php if($this->is('post')): ?><span class="hint--bottom" data-tooltip="<?php gtaecho('postTexts','sort_title',$this->category) ?>"><i class="iconfont"></i> <?php $this->category(','); ?></span> <?php endif; ?> <?php if($this->fields->commentShow=='0'):?><span class="hint--bottom" data-tooltip="<?php if($this->commentsNum=='0'): gtecho('commentListTexts', 'commentNumNone'); else:gtaecho('commentListTexts', 'commentNum', $this->commentsNum);endif; ?>"><i class="iconfont"></i> <?php $this->commentsNum('0', '1', '%d'); ?></span> <?php endif;?> diff --git a/themeConfig.php b/themeConfig.php index 02f6287..6a04147 100644 --- a/themeConfig.php +++ b/themeConfig.php @@ -8,7 +8,7 @@ */ /* 语言 */ -$GLOBALS['miraclesLang'] = 'en-us'; //在这里写入语言文件的名字(如 zh-cn.php 就是 zh-cn) +$GLOBALS['miraclesLang'] = 'zh-cn'; //在这里写入语言文件的名字(如 zh-cn.php 就是 zh-cn) /* 字体 */ |
