diff --git a/Module.php b/Module.php index d325ee8ce..c16bf52b4 100644 --- a/Module.php +++ b/Module.php @@ -57,6 +57,9 @@ class Module extends BaseModule /** @var bool Enable the 'impersonate as another user' function */ public $enableImpersonateUser = true; + /** @var bool Enable gravatar profile avatars */ + public $enableGravatar = true; + /** @var int Email changing strategy. */ public $emailChangeStrategy = self::STRATEGY_DEFAULT; diff --git a/views/settings/profile.php b/views/settings/profile.php index 07c625ccb..4c9c5fe27 100644 --- a/views/settings/profile.php +++ b/views/settings/profile.php @@ -66,7 +66,7 @@ ) ); ?> - context->module->enableGravatar) echo $form ->field($model, 'gravatar_email') ->hint(Html::a(Yii::t('user', 'Change your avatar at Gravatar.com'), 'http://gravatar.com')) ?>