Zaktualizowano logikę aktualizacji artykułów, aby ustawić datę modyfikacji na bieżącą datę i czas.

This commit is contained in:
2025-02-20 21:01:52 +01:00
parent 2f918fca1d
commit 90bec6e9a7
3 changed files with 2 additions and 3 deletions

BIN
autoload/.DS_Store vendored Normal file

Binary file not shown.

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 )

BIN
autoload/front/.DS_Store vendored Normal file

Binary file not shown.