From 3008f6e33b793d5e7ccb135e4c64b6f1cf919f01 Mon Sep 17 00:00:00 2001 From: Evgeniy Tkachenko Date: Thu, 1 Jun 2017 11:28:40 +0300 Subject: [PATCH] refactoring to SettingsManager::isFixed --- protected/humhub/components/SettingsManager.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/protected/humhub/components/SettingsManager.php b/protected/humhub/components/SettingsManager.php index 7f053e82e9..708165bc08 100644 --- a/protected/humhub/components/SettingsManager.php +++ b/protected/humhub/components/SettingsManager.php @@ -84,11 +84,7 @@ class SettingsManager extends BaseSettingsManager */ public function isFixed($name) { - if (isset(Yii::$app->params['fixed-settings'][$this->moduleId][$name])) { - return true; - } - - return false; + return isset(Yii::$app->params['fixed-settings'][$this->moduleId][$name]); } /**