Skip to content

Commit

Permalink
Fixing typo.
Browse files Browse the repository at this point in the history
Removing newlines
  • Loading branch information
markstory committed May 20, 2009
1 parent a4f6fdc commit 6eada28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions cake/console/libs/tasks/controller.php
Expand Up @@ -168,7 +168,7 @@ function __interactive() {
$wannaBakeCrud = 'n';
$actions = 'scaffold';
} else {
list($wannaBakeCrud, $wannaBakeCrud) = $this->_askAboutMethods();
list($wannaBakeCrud, $wannaBakeAdminCrud) = $this->_askAboutMethods();

$helpers = $this->doHelpers();
$components = $this->doComponents();
Expand Down Expand Up @@ -288,7 +288,6 @@ function bakeActions($controllerName, $admin = null, $wannaUseSession = true) {
$this->Template->set(compact('admin', 'controllerPath', 'pluralName', 'singularName', 'singularHumanName',
'pluralHumanName', 'modelObj', 'wannaUseSession', 'currentModelName'));
$actions = $this->Template->generate('objects', 'controller_actions');

return $actions;
}

Expand Down
2 changes: 0 additions & 2 deletions cake/console/libs/templates/objects/controller_actions.ctp
Expand Up @@ -26,7 +26,6 @@
$this->set('<?php echo $pluralName ?>', $this->paginate());
}


function <?php echo $admin ?>view($id = null) {
if (!$id) {
<?php if ($wannaUseSession): ?>
Expand All @@ -40,7 +39,6 @@
}

<?php $compact = array(); ?>

function <?php echo $admin ?>add() {
if (!empty($this->data)) {
$this-><?php echo $currentModelName; ?>->create();
Expand Down

0 comments on commit 6eada28

Please sign in to comment.