Can update general settings

This commit is contained in:
Pierre
2018-04-18 12:26:40 +02:00
parent e22205e91e
commit c5c3076c67
4 changed files with 164 additions and 7 deletions

View File

@ -78,6 +78,16 @@ class GeneralSettings {
return $this->openPage;
}
/**
* Make sure the public and the open status of the page
* are coherent
*/
public function rationalizePublicOpenStatus(){
//Make sure the page is not open if it is not public
if(!$this->is_publicPage())
$this->set_openPage(false);
}
//Set and get the comments status on user page
public function set_allowComments(bool $allowComments){
$this->allowComments = $allowComments;