All it does is to override the home topic name in the oops redirect after the web is created. It never seems to be used.
CC
well, it could be used in some
TWikiApplications (no, really, it could be), so i'm hesistant to remove it. however, the code can be made easier to follow:
Index: Manage.pm
===================================================================
--- Manage.pm (revision 6719)
+++ Manage.pm (working copy)
@@ -189,7 +189,7 @@
}
$baseWeb = TWiki::Sandbox::untaintUnchecked( $baseWeb );
- my $newTopic = $query->param( 'newtopic' ) || '';
+ my $newTopic = $query->param( 'newtopic' ) || $TWiki::cfg{HomeTopicName};
# SMELL: check that it is a valid topic name?
$newTopic = TWiki::Sandbox::untaintUnchecked( $newTopic );
@@ -222,8 +222,6 @@
}
# everything OK, redirect to last message
- $newTopic = $TWiki::cfg{HomeTopicName} unless( $newTopic );
-
throw TWiki::OopsException
( 'attention',
web => $newWeb,
SVN:6753
on a related note, i'm not sure what the purpose of
$topicName
is. it's only used to check permissions to create the web. seems like someting like
$TWiki::cfg{HomeTopicName}
could be used equally well (and
$topicName
is probably always defaulting to
$TWiki::cfg{HomeTopicName}
anyway). i guess it's just there because it's a "standard" parameter.
WN