Skip to content

Commit

Permalink
remove superfluous call to 'getDomainRedirectCode' as its been called…
Browse files Browse the repository at this point in the history
… before; allow changing of redirect-code when domain has 'ssl-redirect' = 1
  • Loading branch information
d00p committed Jul 28, 2015
1 parent 5d423c9 commit 8332b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions customer_domains.php
Expand Up @@ -307,6 +307,7 @@
// ssl ip/port assigned to the domain
if (domainHasSslIpPort($domain_check['id']) == true) {
$ssl_redirect = '1';
$_doredirect = true;
} else {
standard_error('sslredirectonlypossiblewithsslipport');
}
Expand Down Expand Up @@ -548,6 +549,7 @@
// ssl ip/port assigned to the domain
if (domainHasSslIpPort($id) == true) {
$ssl_redirect = '1';
$_doredirect = true;
} else {
standard_error('sslredirectonlypossiblewithsslipport');
}
Expand Down
1 change: 0 additions & 1 deletion scripts/jobs/cron_tasks.inc.http.10.apache.php
Expand Up @@ -780,7 +780,6 @@ protected function getVhostContent($domain, $ssl_vhost = false) {
$vhost_content .= ' RewriteRule ^/(.*) '. $corrected_docroot.'$1 ' . $modrew_red . "\n";
$vhost_content .= ' </IfModule>' . "\n";

$code = getDomainRedirectCode($domain['id']);
$vhost_content .= ' Redirect '.$code.' / ' . $this->idnaConvert->encode($domain['documentroot']) . "\n";

} else {
Expand Down

0 comments on commit 8332b77

Please sign in to comment.