summaryrefslogtreecommitdiff
path: root/libpiny/lib/Piny/Repo.pm
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-12-30 23:46:27 -0800
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-12-30 23:46:27 -0800
commited16fabf2d0586e1aa18673a659ee2e3a0687001 (patch)
tree20367303b7cc05936bfca1f6b9dd1e54e66a3211 /libpiny/lib/Piny/Repo.pm
parent431a4a4185784fef43eb1126a54abc226ccdc99b (diff)
downloadpiny-code-ed16fabf2d0586e1aa18673a659ee2e3a0687001.tar.gz
piny-code-ed16fabf2d0586e1aa18673a659ee2e3a0687001.zip
Repo: maybe i should learn to compile check before committing
Diffstat (limited to 'libpiny/lib/Piny/Repo.pm')
-rw-r--r--libpiny/lib/Piny/Repo.pm10
1 files changed, 5 insertions, 5 deletions
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!" );