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.
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -97,4 +97,4 @@ class dbTags extends dbJSON
|
|||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -17,5 +17,5 @@
|
|||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
Loading…
Reference in New Issue