Skip to content

Commit

Permalink
Missing rootdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed May 12, 2003
1 parent 997bf09 commit 9dd1716
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions plugins/Admin/admin.pl
Expand Up @@ -152,8 +152,7 @@ sub main {

# admin.pl is not for regular users
if ($user->{seclev} < 100) {
my $rootdir = getCurrentStatic('rootdir');
redirect("$rootdir/users.pl");
redirect("$constants->{rootdir}/users.pl");
return;
}
# non suadmin users can't perform suadmin ops
Expand Down
4 changes: 2 additions & 2 deletions plugins/Blob/blob.pl
Expand Up @@ -17,13 +17,13 @@ sub main {
my $blob = getObject("Slash::Blob", { db_type => 'reader' });

unless ($form->{id}) {
redirect("/404.pl");
redirect("$constants->{rootdir}/404.pl");
return;
}

my $data = $blob->get($form->{id});
if (!$data || $user->{seclev} < $data->{seclev}) {
redirect("/404.pl");
redirect("$constants->{rootdir}/404.pl");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/Relocate/relocate.pl
Expand Up @@ -16,7 +16,7 @@ sub main {

my $link = $relocateDB->get($form->{id});
if (!$link) {
redirect("/404.pl");
redirect("$constants->{rootdir}/404.pl");
} elsif ($link->{is_alive} eq 'no') {
header("D'Oh"); # Needs to be templated -Brian
printDeadPage($link);
Expand Down
2 changes: 1 addition & 1 deletion plugins/Subscribe/subscribe.pl
Expand Up @@ -219,7 +219,7 @@ sub makepayment {
sub pause {
my($form, $slashdb, $user, $constants) = @_;
sleep 5;
redirect("/subscribe.pl");
redirect("$constants->{rootdir}/subscribe.pl");
}

createEnvironment();
Expand Down

0 comments on commit 9dd1716

Please sign in to comment.