Skip to content
Snippets Groups Projects
Commit 573cd320 authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes.

parent 55097d76
Branches
Tags
No related merge requests found
...@@ -337,6 +337,8 @@ function getOverrideDir($overrideDir) ...@@ -337,6 +337,8 @@ function getOverrideDir($overrideDir)
/** /**
* Validate the custom module name. Returns true on success, message on failure. * Validate the custom module name. Returns true on success, message on failure.
* *
* @param string $module Module name to validate.
*
* @return bool|string * @return bool|string
*/ */
function validateModule($module) function validateModule($module)
...@@ -508,9 +510,9 @@ function buildApacheConfig($baseDir, $overrideDir, $basePath, $module, $multi, $ ...@@ -508,9 +510,9 @@ function buildApacheConfig($baseDir, $overrideDir, $basePath, $module, $multi, $
); );
break; break;
case MULTISITE_HOST_BASED: case MULTISITE_HOST_BASED:
if (($result = validateHost($host)) !== true) { if (($result = validateHost($host)) !== true) {
die($result . "\n"); die($result . "\n");
} }
$config = preg_replace( $config = preg_replace(
'/SetEnv\s+(\w+)\s+(.*)/', '/SetEnv\s+(\w+)\s+(.*)/',
'SetEnvIfNoCase Host ' . str_replace('.', '\.', $host) . ' $1=$2', 'SetEnvIfNoCase Host ' . str_replace('.', '\.', $host) . ' $1=$2',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment