Added option to skip save in ServerAPI::serProperty()

This commit is contained in:
Shoghi Cervantes 2014-01-29 02:36:21 +01:00
parent c88b1c97b3
commit 079db8d234

View File

@ -446,9 +446,11 @@ class ServerAPI{
return ($this->config->exists($name) ? $this->config->get($name):$default);
}
public function setProperty($name, $value){
public function setProperty($name, $value, $save = true){
$this->config->set($name, $value);
$this->writeProperties();
if($save == true){
$this->writeProperties();
}
$this->loadProperties();
}