diff options
author | kondou <kondou@ts.unde.re> | 2013-09-01 18:17:14 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-09-01 18:17:14 +0200 |
commit | 76b1b5b6a31f8241a369f45da4de99a6dd71e2eb (patch) | |
tree | b36611245988e48707fefde1696d504f7913592f /lib | |
parent | ab70b8c26e40174f637a6ecbce7bbabc12519b7e (diff) | |
download | nextcloud-server-76b1b5b6a31f8241a369f45da4de99a6dd71e2eb.tar.gz nextcloud-server-76b1b5b6a31f8241a369f45da4de99a6dd71e2eb.zip |
Provide 'enable_avatars' in config.php, to disable avatars
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/base.php b/lib/base.php index 9f16edd14f5..b66e58f54b4 100644 --- a/lib/base.php +++ b/lib/base.php @@ -266,11 +266,13 @@ class OC { OC_Util::addScript('router'); OC_Util::addScript("oc-requesttoken"); - // defaultavatars - \OC_Util::addScript('placeholder'); - \OC_Util::addScript('3rdparty', 'md5/md5.min'); - \OC_Util::addScript('jquery.avatar'); - \OC_Util::addScript('avatar'); + // avatars + if (\OC_Config::getValue('enable_avatars', true) === true) { + \OC_Util::addScript('placeholder'); + \OC_Util::addScript('3rdparty', 'md5/md5.min'); + \OC_Util::addScript('jquery.avatar'); + \OC_Util::addScript('avatar'); + } OC_Util::addStyle("styles"); OC_Util::addStyle("apps"); |