Aktualizacja konfiguracji FTP oraz poprawa formatowania kodu w plikach konfiguracyjnych

This commit is contained in:
2025-02-20 21:02:20 +01:00
parent 03434ff3e3
commit 9c84b58234
3 changed files with 7 additions and 8 deletions

View File

@@ -280,9 +280,8 @@ class Articles
$mdb -> update( 'pp_articles', [
'show_title' => $show_title == 'on' ? 1 : 0,
'show_date_add' => $show_date_add == 'on' ? 1 : 0,
'date_add' => $date_add,
'show_date_modify' => $show_date_modify == 'on' ? 1 : 0,
'date_modify' => $date_modify,
'date_modify' => date( 'Y-m-d H:i:s' ),
'modify_by' => $user['id'],
'layout_id' => $layout_id ? (int)$layout_id : null,
'status' => $status == 'on' ? 1 : 0,
@@ -290,7 +289,7 @@ class Articles
'social_icons' => $social_icons == 'on' ? 1 : 0,
'show_table_of_contents' => $show_table_of_contents == 'on' ? 1 : 0,
], [
'id' => (int)$article_id
'id' => (int)$article_id
] );
foreach ( $title as $key => $val )