Skip to content

Commit

Permalink
Remove duplicate template.
Browse files Browse the repository at this point in the history
Also remove double creating the home.ctp file.

Fixes #2842
  • Loading branch information
markstory committed May 3, 2012
1 parent 49f8e73 commit b57489f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 133 deletions.
20 changes: 0 additions & 20 deletions lib/Cake/Console/Command/Task/ProjectTask.php
Expand Up @@ -70,12 +70,6 @@ public function execute() {
$success = true;
if ($this->bake($project)) {
$path = Folder::slashTerm($project);
if ($this->createHome($path)) {
$this->out(__d('cake_console', ' * Welcome page created'));
} else {
$this->err(__d('cake_console', 'The Welcome page was <error>NOT</error> created'));
$success = false;
}

if ($this->securitySalt($path) === true) {
$this->out(__d('cake_console', ' * Random hash key created for \'Security.salt\''));
Expand Down Expand Up @@ -220,20 +214,6 @@ public function bake($path, $skel = null, $skip = array('empty')) {
}
}

/**
* Writes a file with a default home page to the project.
*
* @param string $dir Path to project
* @return boolean Success
*/
public function createHome($dir) {
$app = basename($dir);
$path = $dir . 'View' . DS . 'Pages' . DS;
$source = CAKE . 'Console' . DS . 'Templates' . DS . 'default' . DS . 'views' . DS . 'home.ctp';
include $source;
return $this->createFile($path . 'home.ctp', $output);
}

/**
* Generates the correct path to the CakePHP libs that are generating the project
* and points app/console/cake.php to the right place
Expand Down
113 changes: 0 additions & 113 deletions lib/Cake/Console/Templates/default/views/home.ctp

This file was deleted.

0 comments on commit b57489f

Please sign in to comment.