Minor bug fixes

This commit is contained in:
dignajar 2016-02-26 11:42:28 -03:00
parent 3728ea8a98
commit e7208d8e9b
3 changed files with 13 additions and 3 deletions

View File

@ -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,6 +486,10 @@ 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;
}

View File

@ -17,5 +17,5 @@
}
img {
max-width: 100%;
width: 100%;
}