Changeset 7659
- Timestamp:
- 02/28/08 11:09:58 (1 year ago)
- Files:
-
- branches/1.1/lib/plugin/sfPluginManager.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugin/sfPluginManager.class.php
r5250 r7659 118 118 protected function doInstallPlugin($plugin, $options = array()) 119 119 { 120 if (false !== strpos($plugin, '/')) 121 { 122 list($options['channel'], $plugin) = explode('/', $plugin); 123 } 124 120 125 $channel = isset($options['channel']) ? $options['channel'] : $this->environment->getConfig()->get('default_channel'); 121 126 $stability = isset($options['stability']) ? $options['stability'] : $this->environment->getConfig()->get('preferred_state', null, $channel); … … 140 145 } 141 146 142 if ( is_null($version))147 if (!$version) 143 148 { 144 149 $version = $this->getPluginVersion($plugin, $stability); … … 256 261 public function uninstallPlugin($plugin, $channel = null) 257 262 { 263 if (false !== strpos($plugin, '/')) 264 { 265 list($channel, $plugin) = explode('/', $plugin); 266 } 267 258 268 $channel = is_null($channel) ? $this->environment->getConfig()->get('default_channel') : $channel; 259 269

