Permalink
Browse files

Fixed comment in ./conf/elefant crud-app

  • Loading branch information...
1 parent 0727b9d commit d4ee7e1b9763638a64add65d72d3a6a240985f3d @jbroadway committed Jul 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 conf/elefant
View
@@ -441,7 +441,7 @@ if (count ($argv) > 1) {
$plural
));
file_put_contents ('apps/' . $plural . '/handlers/add.php', sprintf (
- "<?php\n\n\$this->require_admin ();\n\n\$page->layout = 'admin';\n\$page->title = i18n_get ('Add %s');\n\n\$form = new Form ('post', \$this);\n\necho \$form->handle (function (\$form) {\n\t// Create and save a new %s\n\t\$%s = new %s\%s (array (\n\t\t%s\n\t));\n\t\$%s->put ();\n\n\tif (\$%s->error) {\n\t\t// Failed to save\n\t\t\$form->controller->add_notification (i18n_get ('Unable to save %s.'));\n\t\treturn false;\n\t}\n\n\t// Save a version of the contact\n\tVersions::add (\$%s);\n\n\t// Notify the user and redirect on success\n\t\$form->controller->add_notification (i18n_get ('%s added.'));\n\t\$form->controller->redirect ('/%s/admin');\n});\n\n?>",
+ "<?php\n\n\$this->require_admin ();\n\n\$page->layout = 'admin';\n\$page->title = i18n_get ('Add %s');\n\n\$form = new Form ('post', \$this);\n\necho \$form->handle (function (\$form) {\n\t// Create and save a new %s\n\t\$%s = new %s\%s (array (\n\t\t%s\n\t));\n\t\$%s->put ();\n\n\tif (\$%s->error) {\n\t\t// Failed to save\n\t\t\$form->controller->add_notification (i18n_get ('Unable to save %s.'));\n\t\treturn false;\n\t}\n\n\t// Save a version of the %s\n\tVersions::add (\$%s);\n\n\t// Notify the user and redirect on success\n\t\$form->controller->add_notification (i18n_get ('%s added.'));\n\t\$form->controller->redirect ('/%s/admin');\n});\n\n?>",
ucfirst ($name),
$name,
$name,
@@ -452,6 +452,7 @@ if (count ($argv) > 1) {
$name,
$name,
$name,
+ $name,
ucfirst ($name),
$plural
));

0 comments on commit d4ee7e1

Please sign in to comment.