Changeset 6217
- Timestamp:
- 11/30/07 01:13:43 (2 years ago)
- Files:
-
- trunk/lib/plugin/sfPearEnvironment.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/plugin/sfPearEnvironment.class.php
r5250 r6217 4 4 * This file is part of the symfony package. 5 5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 121 121 122 122 /** 123 * Returns whether configuration name exists. 124 * 125 * @param string The configuration name 126 * 127 * @return boolean True if configuration name exists 128 */ 129 public function hasOption($name) 130 { 131 return isset($this->options[$name]); 132 } 133 134 /** 123 135 * Sets a configuration value. 124 136 * … … 241 253 $this->config->set('bin_dir', $pluginDir); 242 254 255 if($this->hasOption('preferred_state')) 256 { 257 $this->config->set('preferred_state', $this->getOption('preferred_state')); 258 } 259 243 260 // change the PEAR temp dirs 244 261 $this->config->set('cache_dir', $cacheDir);

