Skip to content
Snippets Groups Projects
Commit 762fb7d4 authored by chris's avatar chris
Browse files

fix more ';' in config values

a more robust fix is needed, but this should resolve 99.9% of potential problems

darcs-hash:20060505000432-9b6ab-273277892e7b7dc978f7622174de38212155f104.gz
parent 7774aa3f
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,7 @@ if (!class_exists('configuration')) { ...@@ -125,7 +125,7 @@ if (!class_exists('configuration')) {
if ($this->_format == 'php') { if ($this->_format == 'php') {
$contents = @php_strip_whitespace($file); $contents = @php_strip_whitespace($file);
$pattern = '/\$'.$this->_name.'\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);/'; $pattern = '/\$'.$this->_name.'\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);(?=[^;]*(?:\$'.$this->_name.'|@include|$))/';
$matches=array(); $matches=array();
preg_match_all($pattern,$contents,$matches,PREG_SET_ORDER); preg_match_all($pattern,$contents,$matches,PREG_SET_ORDER);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment