Development

Changeset 7659

You must first sign up to be able to contribute.

Changeset 7659

Show
Ignore:
Timestamp:
02/28/08 11:09:58 (1 year ago)
Author:
fabien
Message:

fixed sfPluginManager when passing a fully qualified plugin name as a first argument

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugin/sfPluginManager.class.php

    r5250 r7659  
    118118  protected function doInstallPlugin($plugin, $options = array()) 
    119119  { 
     120    if (false !== strpos($plugin, '/')) 
     121    { 
     122      list($options['channel'], $plugin) = explode('/', $plugin); 
     123    } 
     124 
    120125    $channel   = isset($options['channel']) ? $options['channel'] : $this->environment->getConfig()->get('default_channel'); 
    121126    $stability = isset($options['stability']) ? $options['stability'] : $this->environment->getConfig()->get('preferred_state', null, $channel); 
     
    140145      } 
    141146 
    142       if (is_null($version)
     147      if (!$version
    143148      { 
    144149        $version = $this->getPluginVersion($plugin, $stability); 
     
    256261  public function uninstallPlugin($plugin, $channel = null) 
    257262  { 
     263    if (false !== strpos($plugin, '/')) 
     264    { 
     265      list($channel, $plugin) = explode('/', $plugin); 
     266    } 
     267 
    258268    $channel = is_null($channel) ? $this->environment->getConfig()->get('default_channel') : $channel; 
    259269 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.