diff options
author | friendica <info@friendica.com> | 2014-01-27 15:25:04 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-27 15:25:04 -0800 |
commit | 24bac92acdf04a49eb65fc947f25fafb2b2044fa (patch) | |
tree | ca56eed9167ac0d886f7781dc1b62300d8ca584b /mod/rpost.php | |
parent | 9551f6b40485e951db25f6c1b31b1f46cbeda5cd (diff) | |
download | volse-hubzilla-24bac92acdf04a49eb65fc947f25fafb2b2044fa.tar.gz volse-hubzilla-24bac92acdf04a49eb65fc947f25fafb2b2044fa.tar.bz2 volse-hubzilla-24bac92acdf04a49eb65fc947f25fafb2b2044fa.zip |
after rposting - if there's no remote_return, go to your matrix page rather than leave you on a blank rpost page.
Diffstat (limited to 'mod/rpost.php')
-rw-r--r-- | mod/rpost.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/rpost.php b/mod/rpost.php index 8e01ef5d4..852a57d78 100644 --- a/mod/rpost.php +++ b/mod/rpost.php @@ -65,8 +65,10 @@ function rpost_content(&$a) { if($_REQUEST['remote_return']) { $_SESSION['remote_return'] = $_REQUEST['remote_return']; } - if(argc() > 1 && argv(1) === 'return' && $_SESSION['remote_return']) { - goaway($_SESSION['remote_return']); + if(argc() > 1 && argv(1) === 'return') { + if($_SESSION['remote_return']) + goaway($_SESSION['remote_return']); + goaway(z_root() . '/network'); } $plaintext = true; |