mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-01 19:59:21 +02:00
fix changelog add
This commit is contained in:
parent
58bc0a7c28
commit
ea09b6a91b
@ -37,7 +37,7 @@ if(!empty($action))
|
|||||||
|
|
||||||
$errors = array();
|
$errors = array();
|
||||||
|
|
||||||
if($action == 'add') {
|
if($action == 'new') {
|
||||||
|
|
||||||
if(Changelog::add($body, $type, $where, $player_id, $create_date, $errors)) {
|
if(Changelog::add($body, $type, $where, $player_id, $create_date, $errors)) {
|
||||||
$body = '';
|
$body = '';
|
||||||
@ -110,7 +110,7 @@ if($action == 'edit' || $action == 'new') {
|
|||||||
$account_players->orderBy('group_id', POT::ORDER_DESC);
|
$account_players->orderBy('group_id', POT::ORDER_DESC);
|
||||||
$twig->display('admin.changelog.form.html.twig', array(
|
$twig->display('admin.changelog.form.html.twig', array(
|
||||||
'action' => $action,
|
'action' => $action,
|
||||||
'cl_link_form' => constant('ADMIN_URL').'?p=changelog&action=' . ($action == 'edit' ? 'edit' : 'add'),
|
'cl_link_form' => constant('ADMIN_URL').'?p=changelog&action=' . ($action == 'edit' ? 'edit' : 'new'),
|
||||||
'cl_id' => $id ?? null,
|
'cl_id' => $id ?? null,
|
||||||
'body' => isset($body) ? escapeHtml($body) : '',
|
'body' => isset($body) ? escapeHtml($body) : '',
|
||||||
'create_date' => $create_date ?? '',
|
'create_date' => $create_date ?? '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user