1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

fixes #86 - News admin "stay in edit mode" doesn't work

This commit is contained in:
SecretR
2013-02-06 11:46:20 +02:00
parent 142eb4a0f2
commit bcaec63728

View File

@@ -1207,11 +1207,11 @@ class admin_newspost
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;
} }
} }