Commit bf3e6fd3 authored by omega8cc's avatar omega8cc

Issue #2146711 by helmo: PHP 5.3 compatible (Nginx).

parent 9bc7ca20
......@@ -34,14 +34,16 @@ class Provision_Config_Nginx_Subdir extends Provision_Config_Http {
* Guess the URI this subdir alias is related too.
*/
function uri() {
return explode('/', $this->current_alias, 2)[0];
$e = explode('/', $this->current_alias, 2);
return $e[0];
}
/**
* Guess the subdir part of the subdir alias.
*/
function subdir() {
return explode('/', $this->current_alias, 2)[1];
$e = explode('/', $this->current_alias, 2);
return $e[1];
}
function process() {
......
......@@ -18,14 +18,16 @@ class Provision_Config_Nginx_SubdirVhost extends Provision_Config_Http {
* Guess the URI this subdir alias is related too.
*/
function uri() {
return explode('/', $this->current_alias, 2)[0];
$e = explode('/', $this->current_alias, 2);
return $e[0];
}
/**
* Guess the subdir part of the subdir alias.
*/
function subdir() {
return explode('/', $this->current_alias, 2)[1];
$e = explode('/', $this->current_alias, 2);
return $e[1];
}
function write() {
......
Markdown is supported
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