diff --git a/lib/Cake/Console/Command/Task/PluginTask.php b/lib/Cake/Console/Command/Task/PluginTask.php index 0368240ee38..4ca79815a29 100644 --- a/lib/Cake/Console/Command/Task/PluginTask.php +++ b/lib/Cake/Console/Command/Task/PluginTask.php @@ -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', 'Created: %s in %s', $plugin, $this->path . $plugin), 2); - } return true;