mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
fixes #86 - News admin "stay in edit mode" doesn't work
This commit is contained in:
@@ -1204,14 +1204,14 @@ class admin_newspost
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->clear_cache();
|
$this->clear_cache();
|
||||||
|
|
||||||
if(isset($_POST['create_edit_stay']) && !empty($_POST['create_edit_stay']))
|
if(isset($_POST['create_edit_stay']) && !empty($_POST['create_edit_stay']))
|
||||||
{
|
{
|
||||||
if($this->getSubAction() != 'edit')
|
if($this->getAction() != 'edit')
|
||||||
{
|
{
|
||||||
session_write_close();
|
session_write_close();
|
||||||
$rurl = e_SELF.(varsettrue($ret['id']) ? "?create.edit.".$ret['id'] : '');
|
$rurl = e_SELF.(vartrue($ret['news_id']) ? '?mode='.$_GET['mode'].'&action=edit&id='.$ret['news_id'] : '');
|
||||||
header('Location:'.($rurl ? $rurl : e_SELF));
|
header('Location: '.$rurl);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user