Improve efficiency in settings model behavior

This commit is contained in:
Sam Georges 2014-10-16 19:47:06 +11:00
parent 56e6620a35
commit fbaab26bfb
2 changed files with 0 additions and 14 deletions

View File

@ -40,13 +40,6 @@ class UserPreferencesModel extends SettingsModel
if (!$item = $this->getSettingsRecord()) {
$this->model->initSettingsData();
if (method_exists($this->model, 'forceSave'))
$this->model->forceSave();
else
$this->model->save();
$this->model->reload();
$item = $this->model;
}

View File

@ -76,13 +76,6 @@ class SettingsModel extends ModelBehavior
if (!$item = $this->getSettingsRecord()) {
$this->model->initSettingsData();
if (method_exists($this->model, 'forceSave'))
$this->model->forceSave();
else
$this->model->save();
$this->model->reload();
$item = $this->model;
}