From e7208d8e9baf8e52363641db61c84b263fd85bf6 Mon Sep 17 00:00:00 2001 From: dignajar Date: Fri, 26 Feb 2016 11:42:28 -0300 Subject: [PATCH] Minor bug fixes --- bl-kernel/dbposts.class.php | 12 +++++++++++- bl-kernel/dbtags.class.php | 2 +- bl-themes/future-imperfect/assets/css/bludit.css | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/bl-kernel/dbposts.class.php b/bl-kernel/dbposts.class.php index 7609466e..cc6e1b10 100644 --- a/bl-kernel/dbposts.class.php +++ b/bl-kernel/dbposts.class.php @@ -107,6 +107,7 @@ class dbPosts extends dbJSON // The user is always who is loggued. $args['username'] = Session::get('username'); if( Text::isEmpty($args['username']) ) { + Log::set(__METHOD__.LOG_SEP.'The session does not have the username.'); return false; } @@ -271,6 +272,7 @@ class dbPosts extends dbJSON return false; } + Log::set(__METHOD__.LOG_SEP.'Posts from the user '.$username.' were delete.'); return true; } @@ -293,6 +295,7 @@ class dbPosts extends dbJSON return false; } + Log::set(__METHOD__.LOG_SEP.'Posts linked to another user.'); return true; } @@ -343,6 +346,7 @@ class dbPosts extends dbJSON return false; } + Log::set(__METHOD__.LOG_SEP.'New post published from scheduler.'); return true; } @@ -443,6 +447,8 @@ class dbPosts extends dbJSON { $valueFromFile = $Post->getField($f); + Log::set(__METHOD__.LOG_SEP.'Field from file: '.$f); + if($f=='tags') { // Generate tags array. $this->db[$key]['tags'] = $this->generateTags($valueFromFile); @@ -480,7 +486,11 @@ class dbPosts extends dbJSON return false; } + if($this->db!=$db) { + Log::set(__METHOD__.LOG_SEP.'New posts added from Cli Mode'); + } + return $this->db!=$db; } -} +} \ No newline at end of file diff --git a/bl-kernel/dbtags.class.php b/bl-kernel/dbtags.class.php index 3df3fce0..e0b64e2a 100644 --- a/bl-kernel/dbtags.class.php +++ b/bl-kernel/dbtags.class.php @@ -97,4 +97,4 @@ class dbTags extends dbJSON return true; } -} +} \ No newline at end of file diff --git a/bl-themes/future-imperfect/assets/css/bludit.css b/bl-themes/future-imperfect/assets/css/bludit.css index 2bf77cfa..07f278b6 100644 --- a/bl-themes/future-imperfect/assets/css/bludit.css +++ b/bl-themes/future-imperfect/assets/css/bludit.css @@ -17,5 +17,5 @@ } img { - max-width: 100%; + width: 100%; } \ No newline at end of file