summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-13 17:49:05 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-02-13 17:53:33 -0600
commit200a28255e058843465c63080d917170de293ee6 (patch)
tree86c8f04fc95b22e8f2e973e16f026ae1d2552ec3 /settings/personal.php
parent88047aaea732d77bf38730566842fc163c6ba3a1 (diff)
downloadnextcloud-server-200a28255e058843465c63080d917170de293ee6.tar.gz
nextcloud-server-200a28255e058843465c63080d917170de293ee6.zip
Always enable avatars
* we introduced this setting in the begining because our avatar support caused some performance issues, but we fixed them and should only provide one way how Nextcloud looks Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/settings/personal.php b/settings/personal.php
index a79e9764a6b..a1fcd10e0ad 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -57,10 +57,8 @@ OC_Util::addStyle( 'settings', 'settings' );
\OC_Util::addVendorScript('strengthify/jquery.strengthify');
\OC_Util::addVendorStyle('strengthify/strengthify');
\OC_Util::addScript('files', 'jquery.fileupload');
-if ($config->getSystemValue('enable_avatars', true) === true) {
- \OC_Util::addVendorScript('jcrop/js/jquery.Jcrop');
- \OC_Util::addVendorStyle('jcrop/css/jquery.Jcrop');
-}
+\OC_Util::addVendorScript('jcrop/js/jquery.Jcrop');
+\OC_Util::addVendorStyle('jcrop/css/jquery.Jcrop');
\OC::$server->getEventDispatcher()->dispatch('OC\Settings\Personal::loadAdditionalScripts');
@@ -182,7 +180,6 @@ $tmpl->assign('websiteScope', $userData[\OC\Accounts\AccountManager::PROPERTY_WE
$tmpl->assign('twitterScope', $userData[\OC\Accounts\AccountManager::PROPERTY_TWITTER]['scope']);
$tmpl->assign('addressScope', $userData[\OC\Accounts\AccountManager::PROPERTY_ADDRESS]['scope']);
-$tmpl->assign('enableAvatars', $config->getSystemValue('enable_avatars', true) === true);
$tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser()));
$tmpl->assign('certs', $certificateManager->listCertificates());
$tmpl->assign('showCertificates', $enableCertImport);