From 9d708050100dd118145288b6852284e07b90992f Mon Sep 17 00:00:00 2001 From: dignajar Date: Mon, 21 Sep 2015 23:05:54 -0300 Subject: [PATCH] Bug fixes --- kernel/dbpages.class.php | 1 + kernel/dbposts.class.php | 1 + 2 files changed, 2 insertions(+) diff --git a/kernel/dbpages.class.php b/kernel/dbpages.class.php index 298349c5..61933d7f 100644 --- a/kernel/dbpages.class.php +++ b/kernel/dbpages.class.php @@ -335,6 +335,7 @@ class dbPages extends dbJSON $fields['status'] = CLI_STATUS; $fields['date'] = Date::current(DB_DATE_FORMAT); + $fields['username'] = 'admin'; //$tmpPaths = glob(PATH_PAGES.'*', GLOB_ONLYDIR); $tmpPaths = Filesystem::listDirectories(PATH_PAGES); diff --git a/kernel/dbposts.class.php b/kernel/dbposts.class.php index 68122961..113d8dff 100644 --- a/kernel/dbposts.class.php +++ b/kernel/dbposts.class.php @@ -395,6 +395,7 @@ class dbPosts extends dbJSON $fields['status'] = CLI_STATUS; $fields['date'] = $currentDate; + $fields['username'] = 'admin'; // Recovery posts from the first level of directories $tmpPaths = Filesystem::listDirectories(PATH_POSTS);