diff options
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/personal.php b/settings/personal.php index 6a6619d5a14..88e8802663d 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -16,8 +16,10 @@ OC_Util::addStyle( 'settings', 'settings' ); OC_Util::addScript( '3rdparty', 'chosen/chosen.jquery.min' ); OC_Util::addStyle( '3rdparty', 'chosen' ); \OC_Util::addScript('files', 'jquery.fileupload'); -\OC_Util::addScript('3rdparty/Jcrop', 'jquery.Jcrop.min'); -\OC_Util::addStyle('3rdparty/Jcrop', 'jquery.Jcrop.min'); +if (\OC_Config::getValue('enable_avatars', true) === true) { + \OC_Util::addScript('3rdparty/Jcrop', 'jquery.Jcrop.min'); + \OC_Util::addStyle('3rdparty/Jcrop', 'jquery.Jcrop.min'); +} OC_App::setActiveNavigationEntry( 'personal' ); $storageInfo=OC_Helper::getStorageInfo('/'); |