mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
fix #1104
This commit is contained in:
parent
4861a40b9e
commit
ac74c6e0cb
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user