diff --git a/admin/controllers/shared/statistics.php b/admin/controllers/shared/statistics.php
index 7422c1a..9765250 100644
--- a/admin/controllers/shared/statistics.php
+++ b/admin/controllers/shared/statistics.php
@@ -251,7 +251,7 @@
$options_posts_status = [
'order_by' => 'id DESC',
- 'where' => 'post_status="Publiced"',
+ 'where' => 'post_status="Published"',
];
$total_posts_status = getTotal('posts', $options_posts_status);
diff --git a/admin/controllers/slide/edit.php b/admin/controllers/slide/edit.php
index abf8eac..31dcb95 100644
--- a/admin/controllers/slide/edit.php
+++ b/admin/controllers/slide/edit.php
@@ -5,7 +5,6 @@
require_once('admin/models/slides.php');
if (!empty($_POST)) {
slide_update();
-} else {
}
if (isset($_GET['slide_id'])) {
$slideId = intval($_GET['slide_id']);
diff --git a/admin/database/db-backup-tanhongit-2022-07-10-12-37-26.sql b/admin/database/db-backup-tanhongit-2022-07-10-12-37-26.sql
index cccc7a4..37984e2 100644
--- a/admin/database/db-backup-tanhongit-2022-07-10-12-37-26.sql
+++ b/admin/database/db-backup-tanhongit-2022-07-10-12-37-26.sql
@@ -280,12 +280,12 @@ CREATE TABLE `posts` (
KEY `fk_id_author` (`post_author`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-INSERT INTO posts VALUES("1","2","2020-04-08 05:57:42","","About","Publiced","2020-04-08 06:31:51","2","Tân Hồng ","48","about","about-1page.png");
-INSERT INTO posts VALUES("9","3","2020-04-12 13:20:20","","Web developmwnt","Publiced","0000-00-00 00:00:00","2","","0","fewrfewrew","");
-INSERT INTO posts VALUES("8","2","2020-04-08 23:13:53","","Điều khoản sử dụng","Publiced","0000-00-00 00:00:00","2","","1","terms-of-use-page","");
+INSERT INTO posts VALUES("1","2","2020-04-08 05:57:42","","About","Published","2020-04-08 06:31:51","2","Tân Hồng ","48","about","about-1page.png");
+INSERT INTO posts VALUES("9","3","2020-04-12 13:20:20","","Web developmwnt","Published","0000-00-00 00:00:00","2","","0","fewrfewrew","");
+INSERT INTO posts VALUES("8","2","2020-04-08 23:13:53","","Điều khoản sử dụng","Published","0000-00-00 00:00:00","2","","1","terms-of-use-page","");
INSERT INTO posts VALUES("6","2","2020-04-08 11:47:48","","Dmca Luật bản quyền","Trash","2020-04-08 10:25:58","1","Tân Hồng ","5","dmca-luat-ban","");
INSERT INTO posts VALUES("5","2","2020-04-09 14:03:15","Phim việt chất lượng cao
-\n","Phim việt","Publiced","2020-04-08 10:13:10","1","Tân Hồng ","4","phim-viet","phim-viet-5post.png");
+\n","Phim việt","Published","2020-04-08 10:13:10","1","Tân Hồng ","4","phim-viet","phim-viet-5post.png");
INSERT INTO posts VALUES("4","2","2020-04-12 12:54:02","ouhiuh
\naad
\n
@@ -293,7 +293,7 @@ INSERT INTO posts VALUES("4","2","2020-04-12 12:54:02","ouhiuh
\nfhgtfrdhtrd
\nỵytrj","Privacy Policy","Draft","2020-04-08 06:05:46","2","Tân Hồng ","7","privacy-policy","privacy-policy-4page.jpg");
INSERT INTO posts VALUES("3","2","2020-04-08 06:17:37","Luật bản quyền dựa trên luật toàn cầu
-\n","Dmca Luật bản quyền","Publiced","2020-04-07 23:52:43","2","","1","dmca-luat-ban-quyen","");
+\n","Dmca Luật bản quyền","Published","2020-04-07 23:52:43","2","","1","dmca-luat-ban-quyen","");
DROP TABLE IF EXISTS products;
diff --git a/admin/models/posts.php b/admin/models/posts.php
index 0dca126..78c97c6 100644
--- a/admin/models/posts.php
+++ b/admin/models/posts.php
@@ -41,7 +41,7 @@ function publicPost($id)
show404NotFound();
}
global $linkConnectDB;
- $sql = 'UPDATE posts SET post_status="Publiced", post_date="' . gmdate('Y-m-d H:i:s', time() + 7 * 3600) . '" where id=' . $id;
+ $sql = 'UPDATE posts SET post_status="Published", post_date="' . gmdate('Y-m-d H:i:s', time() + 7 * 3600) . '" where id=' . $id;
mysqli_query($linkConnectDB, $sql) or die(mysqli_error($linkConnectDB));
}
function postDelete($id)
diff --git a/content/controllers/page/index.php b/content/controllers/page/index.php
index 6ba9326..0ac0784 100644
--- a/content/controllers/page/index.php
+++ b/content/controllers/page/index.php
@@ -9,7 +9,7 @@
$postId = intval($_GET['id']);
$page = getRecord('posts', $postId);
$user = getRecord('users', $page['post_author']);
-if (!$page || $page['post_status'] <> 'Publiced') {
+if (!$page || $page['post_status'] <> 'Published') {
show404NotFound();
} else {
updateCountView($postId);
diff --git a/content/controllers/post/index.php b/content/controllers/post/index.php
index dde0e18..a289ff3 100644
--- a/content/controllers/post/index.php
+++ b/content/controllers/post/index.php
@@ -8,7 +8,7 @@
$postId = intval($_GET['id']);
$post = getRecord('posts', $postId);
$user = getRecord('users', $post['post_author']);
-if (!$post || $post['post_status'] <> 'Publiced') {
+if (!$post || $post['post_status'] <> 'Published') {
show404NotFound();
} else {
updateCountView($postId);