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
|
@@ 423-431 (lines=9) @@
|
| 420 |
|
|
| 421 |
|
// perform move operation |
| 422 |
|
$targetId = $this->request->getData('targetId'); |
| 423 |
|
if (!empty($targetId)) { |
| 424 |
|
if ($this->Entries->threadMerge($sourceId, $targetId)) { |
| 425 |
|
$this->redirect('/entries/view/' . $sourceId); |
| 426 |
|
|
| 427 |
|
return; |
| 428 |
|
} else { |
| 429 |
|
$this->Flash->set(__('Error'), ['element' => 'error']); |
| 430 |
|
} |
| 431 |
|
} |
| 432 |
|
|
| 433 |
|
$this->viewBuilder()->setLayout('Admin.admin'); |
| 434 |
|
$this->set('posting', $entry); |