Webserver.php (icingaweb2-2.11.3) | : | Webserver.php (icingaweb2-2.11.4) | ||
---|---|---|---|---|
skipping to change at line 79 | skipping to change at line 79 | |||
* | * | |||
* @return string | * @return string | |||
*/ | */ | |||
public function generate() | public function generate() | |||
{ | { | |||
$template = $this->getTemplate(); | $template = $this->getTemplate(); | |||
$searchTokens = array( | $searchTokens = array( | |||
'{urlPath}', | '{urlPath}', | |||
'{documentRoot}', | '{documentRoot}', | |||
'{aliasDocumentRoot}', | ||||
'{configDir}', | '{configDir}', | |||
'{fpmUri}' | '{fpmUri}' | |||
); | ); | |||
$replaceTokens = array( | $replaceTokens = array( | |||
$this->getUrlPath(), | $this->getUrlPath(), | |||
$this->getDocumentRoot(), | $this->getDocumentRoot(), | |||
preg_match('~/$~', $this->getUrlPath()) ? $this->getDocumentRoot() . '/' : $this->getDocumentRoot(), | ||||
$this->getConfigDir(), | $this->getConfigDir(), | |||
$this->getFpmUri() | $this->getFpmUri() | |||
); | ); | |||
$template = str_replace($searchTokens, $replaceTokens, $template); | $template = str_replace($searchTokens, $replaceTokens, $template); | |||
return $template; | return $template; | |||
} | } | |||
/** | /** | |||
* Specific template | * Specific template | |||
* | * | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |