This commit is contained in:
joyqi 2021-06-11 14:05:35 +08:00
parent 4861a40b9e
commit ac74c6e0cb
3 changed files with 4 additions and 4 deletions

View File

@ -179,7 +179,7 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
/** 设置提示信息 */
$this->widget('Widget_Notice')->set($markCount > 0 ? _t('页面已经被标记为<strong>%s</strong>', $statusList[$status]) : _t('没有页面被标记'),
$deleteCount > 0 ? 'success' : 'notice');
$markCount > 0 ? 'success' : 'notice');
/** 返回原网页 */
$this->response->goBack();

View File

@ -874,7 +874,7 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
/** 设置提示信息 */
$this->widget('Widget_Notice')->set($markCount > 0 ? _t('文章已经被标记为<strong>%s</strong>', $statusList[$status]) : _t('没有文章被标记'),
$deleteCount > 0 ? 'success' : 'notice');
$markCount > 0 ? 'success' : 'notice');
/** 返回原网页 */
$this->response->goBack();

View File

@ -263,9 +263,9 @@ class Widget_User extends Typecho_Widget
return false;
} else {
//防止循环重定向
$this->response->redirect($this->options->loginUrl .
$this->response->redirect(defined('__TYPECHO_ADMIN__') ? $this->options->loginUrl .
(0 === strpos($this->request->getReferer(), $this->options->loginUrl) ? '' :
'?referer=' . urlencode($this->request->makeUriByRequest())), false);
'?referer=' . urlencode($this->request->makeUriByRequest())) : $this->options->siteUrl, false);
}
}