Changeset 13929
- Timestamp:
- 12/10/08 23:06:40 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/config/sfProjectConfiguration.class.php
r13547 r13929 449 449 * @return array 450 450 */ 451 p rotectedfunction getAllPluginPaths()451 public function getAllPluginPaths() 452 452 { 453 453 $pluginPaths = array(); branches/1.2/lib/task/plugin/sfPluginPublishAssetsTask.class.php
r13092 r13929 52 52 protected function execute($arguments = array(), $options = array()) 53 53 { 54 foreach ($this->configuration->getPluginPaths() as $path) 54 $plugins = $this->configuration->getPlugins(); 55 56 foreach ($this->configuration->getAllPluginPaths() as $pluginName => $pluginPath) 55 57 { 56 if ( $options['core-only'] && dirname($path) != $this->configuration->getSymfonyLibDir().'/plugins')58 if (!in_array($pluginName, $plugins) || ($options['core-only'] && dirname($pluginPath) != $this->configuration->getSymfonyLibDir().'/plugins')) 57 59 { 58 60 continue; 59 61 } 60 62 61 $this->logSection('plugin', 'Configuring plugin - '. basename($path));62 $this->installPluginAssets( basename($path), dirname($path));63 $this->logSection('plugin', 'Configuring plugin - '.$pluginName); 64 $this->installPluginAssets($pluginName, $pluginPath); 63 65 } 64 66 } … … 72 74 protected function installPluginAssets($plugin, $dir) 73 75 { 74 $webDir = $dir.DIRECTORY_SEPARATOR.$plugin.DIRECTORY_SEPARATOR.'web'; 76 $webDir = $dir.DIRECTORY_SEPARATOR.'web'; 77 75 78 if (is_dir($webDir)) 76 79 {

