Changeset 128
- Timestamp:
- 03/05/08 20:42:40 (9 months ago)
- Files:
-
- trunk/Phergie/Plugin/Set.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Plugin/Set.php
r118 r128 30 30 // Replace var/value 31 31 if (preg_match('#^\s*('.str_replace('.', '\\.', $var).'\s*=\s*)(.*)$#im', $contents, $m)) { 32 $contents = str_replace($m[2],$this->makeIniValue($value, $m[2], $append), $contents);32 $contents = preg_replace('#^\s*'.str_replace('.', '\\.', $var).'\s*=.*$#im', $var.' = '.$this->makeIniValue($value, $m[2], $append), $contents); 33 33 $this->setIni($var, $this->parseIniValue($this->makeIniValue($value, $m[2], $append))); 34 34 // Insert it if not set