Merge pull request #4950 from bcrowe/fix-viewtask

Fix views overwrite warning text
This commit is contained in:
José Lorenzo Rodríguez 2014-10-21 21:12:27 +02:00
commit 47bff090b8

View file

@ -206,7 +206,7 @@ class ViewTask extends BakeTask {
$this->Controller->connection = $this->connection; $this->Controller->connection = $this->connection;
$this->controllerName = $this->Controller->getName(); $this->controllerName = $this->Controller->getName();
$prompt = __d('cake_console', "Would you like bake to build your views interactively?\nWarning: Choosing no will overwrite %s views if it exist.", $this->controllerName); $prompt = __d('cake_console', "Would you like bake to build your views interactively?\nWarning: Choosing no will overwrite %s views if they exist.", $this->controllerName);
$interactive = $this->in($prompt, array('y', 'n'), 'n'); $interactive = $this->in($prompt, array('y', 'n'), 'n');
if (strtolower($interactive) === 'n') { if (strtolower($interactive) === 'n') {