Skip to content

Commit

Permalink
doesn'st need to be a verbose level message
Browse files Browse the repository at this point in the history
other create mesages are output normally
  • Loading branch information
AD7six committed Jun 7, 2012
1 parent 488ba9e commit 33c112b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Cake/Console/Command/Task/PluginTask.php
Expand Up @@ -151,14 +151,13 @@ public function bake($plugin) {
$bootstrap = new File(APP . 'Config' . DS . 'bootstrap.php', false);
$contents = $bootstrap->read();
if (!preg_match("@\n\s*CakePlugin::loadAll@", $contents)) {
$bootstrap->append("CakePlugin::load('$plugin', array('bootstrap' => false, 'routes' => false));");
$this->out('', 1, Shell::VERBOSE);
$this->out(__d('cake_dev', '%s modified', APP . 'Config' . DS . 'bootstrap.php', 1, Shell::VERBOSE));
$bootstrap->append("\nCakePlugin::load('$plugin', array('bootstrap' => false, 'routes' => false));\n");
$this->out('');
$this->out(__d('cake_dev', '%s modified', APP . 'Config' . DS . 'bootstrap.php'));
}

$this->hr();
$this->out(__d('cake_console', '<success>Created:</success> %s in %s', $plugin, $this->path . $plugin), 2);

}

return true;
Expand Down

0 comments on commit 33c112b

Please sign in to comment.