From ed16fabf2d0586e1aa18673a659ee2e3a0687001 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Fri, 30 Dec 2011 23:46:27 -0800 Subject: Repo: maybe i should learn to compile check before committing --- libpiny/lib/Piny/Repo.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libpiny') diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index 7362d4e..0ca2631 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -802,9 +802,9 @@ sub _build_apache_global_config { sub _build_apache_secure_config { my ( $s ) = @_; - if ( $s->config->core_sharedrepository eq "0666" ) or ( $s->config->core_sharedrepository =~ /^(0664|all|everybody|world)$/ ) { + if ( $s->config->core_sharedrepository eq "0666" or $s->config->core_sharedrepository =~ /^(0664|all|everybody|world)$/ ) { return ( "Redirect /read/" . $s->name . " " . $s->ikiwiki_url . "\n" ); - } elsif ( $s->config->core_sharedrepository =~ /^(0660|true|1|group)$/ ) or ( $s->config->core_sharedrepository =~ /^(0640|false|0)$/ ) { + } elsif ( $s->config->core_sharedrepository =~ /^(0660|true|1|group)$/ or $s->config->core_sharedrepository =~ /^(0640|false|0)$/ ) { if ( $s->config->piny_ikiwiki =~ /^(1|true)$/ ) { return ( "Redirect /cgit/" . $s->name . " /auth/cgit/" . $s->name . "\n" ); } elsif ( $s->config->piny_ikiwiki =~ /^(0|false)$/ ) { @@ -820,15 +820,15 @@ sub _build_apache_secure_config { sub _build_apache_www_config { my ( $s ) = @_; - if ( $s->config->core_sharedrepository eq "0666" ) or ( $s->config->core_sharedrepository =~ /^(0664|all|everybody|world)$/ ) { + if ( $s->config->core_sharedrepository eq "0666" or $s->config->core_sharedrepository =~ /^(0664|all|everybody|world)$/ ) { if ( $s->config->piny_ikiwiki =~ /^(1|true)$/ ) { return ( "\n" ); } elsif ( $s->config->piny_ikiwiki =~ /^(0|false)$/ ) { - return ( "Redirect /" . $s->name . " " . $s->cgit_url "/tree\n" ); + return ( "Redirect /" . $s->name . " " . $s->cgit_url . "/tree\n" ); } else { die ( $s->config->piny_ikiwiki . " is an unhandled value!" ); }; - } elsif ( $s->config->core_sharedrepository =~ /^(0660|true|1|group)$/ ) or ( $s->config->core_sharedrepository =~ /^(0640|false|0)$/ ) { + } elsif ( $s->config->core_sharedrepository =~ /^(0660|true|1|group)$/ or $s->config->core_sharedrepository =~ /^(0640|false|0)$/ ) { return ( "Redirect /" . $s->name . " " . $s->ikiwiki_url . "\n" ); } else { die ( $s->config->core_sharedrepository . " is an unhandled value!" ); -- cgit v1.2.3