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);