Permalink
Browse files

Fix behavior of --plugin param

Since plugins are not loaded in bootstrap, this is a good place to do it.
  • Loading branch information...
1 parent 85c7ef8 commit c727444880b5fc7e63493cc46fec6063e7b347f7 @tenebrousedge tenebrousedge committed with markstory Nov 22, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Console/Shell.php
@@ -372,7 +372,9 @@ public function runCommand($command, $argv) {
if (!empty($this->params['quiet'])) {
$this->_useLogger(false);
}
-
+ if (!empty($this->params['plugin'])) {
+ CakePlugin::load($this->params['plugin']);
+ }
$this->command = $command;
if (!empty($this->params['help'])) {
return $this->_displayHelp($command);

0 comments on commit c727444

Please sign in to comment.