|
@@ 367-372 (lines=6) @@
|
| 364 |
|
*/ |
| 365 |
|
public function deleteCallback() { |
| 366 |
|
$id = $this->input->post('id'); |
| 367 |
|
if (is_numeric($id)) { |
| 368 |
|
SCallbacksQuery::create()->setComment(__METHOD__)->findPk($id)->delete(); |
| 369 |
|
|
| 370 |
|
$this->lib_admin->log(lang('Callback was removed', 'callbacks') . '. Id: ' . $id); |
| 371 |
|
showMessage(lang('Callback was removed', 'callbacks')); |
| 372 |
|
} |
| 373 |
|
|
| 374 |
|
if (is_array($id)) { |
| 375 |
|
SCallbacksQuery::create()->setComment(__METHOD__)->findBy('id', $id)->delete(); |
|
@@ 374-378 (lines=5) @@
|
| 371 |
|
showMessage(lang('Callback was removed', 'callbacks')); |
| 372 |
|
} |
| 373 |
|
|
| 374 |
|
if (is_array($id)) { |
| 375 |
|
SCallbacksQuery::create()->setComment(__METHOD__)->findBy('id', $id)->delete(); |
| 376 |
|
$this->lib_admin->log(lang('Callback(s) was removed', 'callbacks') . '. Id: ' . implode(', ', $id)); |
| 377 |
|
showMessage(lang('Callback(s) was removed', 'callbacks')); |
| 378 |
|
} |
| 379 |
|
|
| 380 |
|
pjax('/admin/components/run/callbacks'); |
| 381 |
|
} |