diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-03-17 12:26:46 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-03-17 12:26:46 -0700 |
commit | 5482d71b76680ab7c341a8a8855b2263ced715fe (patch) | |
tree | aeed6022cd04a6a67629f15bb974c16a8782d013 | |
parent | eb91d744efa884e679ff91f5051748562c5c1649 (diff) | |
parent | 4e90caaad144f84c8a9e59ddd3ba38a52135e1ad (diff) | |
download | rpg-5482d71b76680ab7c341a8a8855b2263ced715fe.tar.gz rpg-5482d71b76680ab7c341a8a8855b2263ced715fe.tar.bz2 |
Merge pull request #197 from splitbrain/FS2743
Redirect only in the show action to namespace start pages FS#2743
-rw-r--r-- | inc/pageutils.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index ca4936a82..5043d2263 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -21,6 +21,7 @@ function getID($param='id',$clean=true){ global $INPUT; global $conf; + global $ACT; $id = $INPUT->str($param); @@ -75,7 +76,7 @@ function getID($param='id',$clean=true){ // fall back to default $id = $id.$conf['start']; } - send_redirect(wl($id,'',true)); + if (isset($ACT) && $ACT === 'show') send_redirect(wl($id,'',true)); } if($clean) $id = cleanID($id); |