summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-29 14:26:11 +0200
committerkondou <kondou@ts.unde.re>2013-08-29 14:26:11 +0200
commit0c708be76bd7c7449779ef12e48e99d9c2cd3d82 (patch)
treee58bdf611bb96f3f73d469d9a65179dbc1f1838e /lib
parente66113f50d9e39e3e370be0e714669f2917f9ccf (diff)
downloadnextcloud-server-0c708be76bd7c7449779ef12e48e99d9c2cd3d82.tar.gz
nextcloud-server-0c708be76bd7c7449779ef12e48e99d9c2cd3d82.zip
Use defaultavatars
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php6
-rw-r--r--lib/templatelayout.php2
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index 2e6a37c9f4e..0473e25da96 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -265,6 +265,12 @@ class OC {
OC_Util::addScript('search', 'result');
OC_Util::addScript('router');
+ // defaultavatars
+ \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("multiselect");
OC_Util::addStyle("jquery-ui-1.10.0.custom");
diff --git a/lib/templatelayout.php b/lib/templatelayout.php
index b69d932c0a0..0024c9d4960 100644
--- a/lib/templatelayout.php
+++ b/lib/templatelayout.php
@@ -18,8 +18,6 @@ class OC_TemplateLayout extends OC_Template {
$this->assign('bodyid', 'body-user');
}
- $this->assign('avatar', '<img class="avatar" src="'.\OC_Helper::linkToRoute('core_avatar_get').'/'.OC_User::getUser().'/32">');
-
// Update notification
if(OC_Config::getValue('updatechecker', true) === true) {
$data=OC_Updater::check();