Minor bug fixes
This commit is contained in:
parent
3728ea8a98
commit
e7208d8e9b
|
@ -107,6 +107,7 @@ class dbPosts extends dbJSON
|
||||||
// The user is always who is loggued.
|
// The user is always who is loggued.
|
||||||
$args['username'] = Session::get('username');
|
$args['username'] = Session::get('username');
|
||||||
if( Text::isEmpty($args['username']) ) {
|
if( Text::isEmpty($args['username']) ) {
|
||||||
|
Log::set(__METHOD__.LOG_SEP.'The session does not have the username.');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,6 +272,7 @@ class dbPosts extends dbJSON
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log::set(__METHOD__.LOG_SEP.'Posts from the user '.$username.' were delete.');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,6 +295,7 @@ class dbPosts extends dbJSON
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log::set(__METHOD__.LOG_SEP.'Posts linked to another user.');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -343,6 +346,7 @@ class dbPosts extends dbJSON
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log::set(__METHOD__.LOG_SEP.'New post published from scheduler.');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -443,6 +447,8 @@ class dbPosts extends dbJSON
|
||||||
{
|
{
|
||||||
$valueFromFile = $Post->getField($f);
|
$valueFromFile = $Post->getField($f);
|
||||||
|
|
||||||
|
Log::set(__METHOD__.LOG_SEP.'Field from file: '.$f);
|
||||||
|
|
||||||
if($f=='tags') {
|
if($f=='tags') {
|
||||||
// Generate tags array.
|
// Generate tags array.
|
||||||
$this->db[$key]['tags'] = $this->generateTags($valueFromFile);
|
$this->db[$key]['tags'] = $this->generateTags($valueFromFile);
|
||||||
|
@ -480,6 +486,10 @@ class dbPosts extends dbJSON
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->db!=$db) {
|
||||||
|
Log::set(__METHOD__.LOG_SEP.'New posts added from Cli Mode');
|
||||||
|
}
|
||||||
|
|
||||||
return $this->db!=$db;
|
return $this->db!=$db;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,5 +17,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
Loading…
Reference in New Issue