1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-10 22:25:37 +02:00

fixes - 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

@ -1204,14 +1204,14 @@ class admin_newspost
return false;
}
$this->clear_cache();
if(isset($_POST['create_edit_stay']) && !empty($_POST['create_edit_stay']))
{
if($this->getSubAction() != 'edit')
if($this->getAction() != 'edit')
{
session_write_close();
$rurl = e_SELF.(varsettrue($ret['id']) ? "?create.edit.".$ret['id'] : '');
header('Location:'.($rurl ? $rurl : e_SELF));
$rurl = e_SELF.(vartrue($ret['news_id']) ? '?mode='.$_GET['mode'].'&action=edit&id='.$ret['news_id'] : '');
header('Location: '.$rurl);
exit;
}
}