Changeset 222
- Timestamp:
- 04/08/08 18:45:49 (8 months ago)
- Files:
-
- trunk/Phergie/Plugin/Set.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Plugin/Set.php
r220 r222 35 35 $contents = preg_replace('#^' . str_replace('.', '\\.', $var) . '\s*=.*$#im', $var . ' = ' . str_replace('$', '\\$', $this->makeIniValue($value, $m[2], $append)), $contents); 36 36 $this->setIni($var, $this->parseIniValue($this->makeIniValue($value, $m[2], $append))); 37 $this->doNotice($user, 'Updated Setting: ' . $var . ' = ' . $this->getIni($var)); 37 38 // Insert it if not set 38 39 } else { 39 40 $contents .= PHP_EOL . $var . ' = ' . $this->makeIniValue($value); 40 41 $this->setIni($var, $this->parseIniValue($value)); 42 $this->doNotice($user, 'Inserted Setting: ' . $var . ' = ' . $this->getIni($var)); 41 43 } 42 $this->doNotice($user, 'Updated Setting: ' . $var . ' = ' . $this->getIni($var));43 44 // Save ini file 44 45 file_put_contents(PHERGIE_INI_PATH, $contents);