Zaktualizowano logikę aktualizacji artykułów, aby ustawić datę modyfikacji na bieżącą datę i czas.
This commit is contained in:
BIN
autoload/.DS_Store
vendored
Normal file
BIN
autoload/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -280,9 +280,8 @@ class Articles
|
|||||||
$mdb -> update( 'pp_articles', [
|
$mdb -> update( 'pp_articles', [
|
||||||
'show_title' => $show_title == 'on' ? 1 : 0,
|
'show_title' => $show_title == 'on' ? 1 : 0,
|
||||||
'show_date_add' => $show_date_add == '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,
|
'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'],
|
'modify_by' => $user['id'],
|
||||||
'layout_id' => $layout_id ? (int)$layout_id : null,
|
'layout_id' => $layout_id ? (int)$layout_id : null,
|
||||||
'status' => $status == 'on' ? 1 : 0,
|
'status' => $status == 'on' ? 1 : 0,
|
||||||
@@ -290,7 +289,7 @@ class Articles
|
|||||||
'social_icons' => $social_icons == 'on' ? 1 : 0,
|
'social_icons' => $social_icons == 'on' ? 1 : 0,
|
||||||
'show_table_of_contents' => $show_table_of_contents == '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 )
|
foreach ( $title as $key => $val )
|
||||||
|
|||||||
BIN
autoload/front/.DS_Store
vendored
Normal file
BIN
autoload/front/.DS_Store
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user