Commit 094b8320 authored by Robert Ricci's avatar Robert Ricci
Browse files

Give wikiregister.php3 a way to get around the clearing of the

'forwikionly' variable that is normally done while processing
URL arguments.
parent 74358409
...@@ -6,6 +6,16 @@ ...@@ -6,6 +6,16 @@
# #
include("defs.php3"); include("defs.php3");
#
# This is a hack to support wikiregister.php3 - normally, this variable would
# be cleared by OptionalPageArguments()
#
if (isset($forwikionly) && $forwikionly == True) {
$old_forwikionly = True;
} else {
$old_forwikionly = False;
}
# #
# No PAGEHEADER since we spit out a Location header later. See below. # No PAGEHEADER since we spit out a Location header later. See below.
# #
...@@ -44,8 +54,11 @@ else { ...@@ -44,8 +54,11 @@ else {
$returning = 0; $returning = 0;
} }
if ($old_forwikionly == True) {
$forwikionly = True;
}
if (!isset($forwikionly)) { if (!isset($forwikionly)) {
$forwikionly = 0; $forwikionly = False;
} }
unset($addpubkeyargs); unset($addpubkeyargs);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# All rights reserved. # All rights reserved.
# #
$forwikionly = 1; $forwikionly = True;
include("joinproject.php3"); include("joinproject.php3");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment