plugins/Admin/src/Controller/SmileyCodesController.php 1 location
|
@@ 132-140 (lines=9) @@
|
129 |
|
return; |
130 |
|
} |
131 |
|
$smiley = $this->SmileyCodes->get($id); |
132 |
|
if ($this->SmileyCodes->delete($smiley)) { |
133 |
|
$this->Flash->set( |
134 |
|
__('Smiley code deleted'), |
135 |
|
['element' => 'error'] |
136 |
|
); |
137 |
|
$this->redirect(['action' => 'index']); |
138 |
|
|
139 |
|
return; |
140 |
|
} |
141 |
|
$this->Flash->set( |
142 |
|
__('Smiley code was not deleted'), |
143 |
|
['element' => 'error'] |
plugins/Admin/src/Controller/SmiliesController.php 1 location
|
@@ 126-131 (lines=6) @@
|
123 |
|
return; |
124 |
|
} |
125 |
|
$smiley = $this->Smilies->get($id); |
126 |
|
if ($this->Smilies->delete($smiley)) { |
127 |
|
$this->Flash->set(__('Smiley deleted.'), ['element' => 'success']); |
128 |
|
$this->redirect(['action' => 'index']); |
129 |
|
|
130 |
|
return; |
131 |
|
} |
132 |
|
$this->Flash->set(__('Smily was not deleted.'), ['element' => 'error']); |
133 |
|
$this->redirect(['action' => 'index']); |
134 |
|
} |
src/Controller/EntriesController.php 1 location
|
@@ 426-434 (lines=9) @@
|
423 |
|
|
424 |
|
// perform move operation |
425 |
|
$targetId = $this->request->getData('targetId'); |
426 |
|
if (!empty($targetId)) { |
427 |
|
if ($this->Entries->threadMerge($sourceId, $targetId)) { |
428 |
|
$this->redirect('/entries/view/' . $sourceId); |
429 |
|
|
430 |
|
return; |
431 |
|
} else { |
432 |
|
$this->Flash->set(__('Error'), ['element' => 'error']); |
433 |
|
} |
434 |
|
} |
435 |
|
|
436 |
|
$this->viewBuilder()->setLayout('Admin.admin'); |
437 |
|
$this->set('posting', $entry); |