Commit c2252ea1 authored by helmo's avatar helmo

Issue #2146711 by helmo: PHP 5.3 compatible.

parent abc9ac9c
......@@ -34,14 +34,16 @@ class Provision_Config_Apache_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_Apache_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