Skip to content

Commit

Permalink
Fix bake templates so they use current i18n markers.
Browse files Browse the repository at this point in the history
Fixes #4321
  • Loading branch information
markstory committed Aug 20, 2014
1 parent e02e4f3 commit 9f18e54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Template/Bake/default/views/index.ctp
Expand Up @@ -47,7 +47,7 @@ use Cake\Utility\Inflector;
echo "\t\t<td class=\"actions\">\n";
echo "\t\t\t<?= \$this->Html->link(__('View'), ['action' => 'view', {$pk}]); ?>\n";
echo "\t\t\t<?= \$this->Html->link(__('Edit'), ['action' => 'edit', {$pk}]); ?>\n";
echo "\t\t\t<?= \$this->Form->postLink(__('Delete'), ['action' => 'delete', {$pk}], ['confirm' => __('Are you sure you want to delete # %s?', {$pk})]); ?>\n";
echo "\t\t\t<?= \$this->Form->postLink(__('Delete'), ['action' => 'delete', {$pk}], ['confirm' => __('Are you sure you want to delete # {0}?', {$pk})]); ?>\n";
echo "\t\t</td>\n";
echo "\t</tr>\n";

Expand Down
2 changes: 1 addition & 1 deletion tests/bake_compare/Controller/Actions.ctp
Expand Up @@ -56,7 +56,7 @@
$bakeArticle = $this->BakeArticles->get($id, [
'contain' => ['BakeTags']
]);
if ($this->request->is(['post', 'put'])) {
if ($this->request->is(['patch', 'post', 'put'])) {
$bakeArticle = $this->BakeArticles->patchEntity($bakeArticle, $this->request->data);
if ($this->BakeArticles->save($bakeArticle)) {
$this->Flash->success('The bake article has been saved.');
Expand Down

0 comments on commit 9f18e54

Please sign in to comment.