summaryrefslogtreecommitdiff
path: root/app/User
diff options
context:
space:
mode:
Diffstat (limited to 'app/User')
-rw-r--r--app/User/Avatar/AvatarFileProvider.php2
-rw-r--r--app/User/Avatar/GravatarProvider.php2
-rw-r--r--app/User/LdapUserProvider.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/app/User/Avatar/AvatarFileProvider.php b/app/User/Avatar/AvatarFileProvider.php
index eea565f0..790245a4 100644
--- a/app/User/Avatar/AvatarFileProvider.php
+++ b/app/User/Avatar/AvatarFileProvider.php
@@ -23,7 +23,7 @@ class AvatarFileProvider extends Base implements AvatarProviderInterface
*/
public function render(array $user, $size)
{
- $url = $this->helper->url->href('AvatarFile', 'image', array('user_id' => $user['id'], 'size' => $size));
+ $url = $this->helper->url->href('AvatarFileController', 'image', array('user_id' => $user['id'], 'size' => $size));
$title = $this->helper->text->e($user['name'] ?: $user['username']);
return '<img src="' . $url . '" alt="' . $title . '" title="' . $title . '">';
}
diff --git a/app/User/Avatar/GravatarProvider.php b/app/User/Avatar/GravatarProvider.php
index 87ca51b1..e066d766 100644
--- a/app/User/Avatar/GravatarProvider.php
+++ b/app/User/Avatar/GravatarProvider.php
@@ -37,6 +37,6 @@ class GravatarProvider extends Base implements AvatarProviderInterface
*/
public function isActive(array $user)
{
- return !empty($user['email']) && $this->config->get('integration_gravatar') == 1;
+ return !empty($user['email']) && $this->configModel->get('integration_gravatar') == 1;
}
}
diff --git a/app/User/LdapUserProvider.php b/app/User/LdapUserProvider.php
index 74cf4cd5..274d7665 100644
--- a/app/User/LdapUserProvider.php
+++ b/app/User/LdapUserProvider.php
@@ -3,7 +3,7 @@
namespace Kanboard\User;
use Kanboard\Core\User\UserProviderInterface;
-use Kanboard\Model\Language;
+use Kanboard\Model\LanguageModel;
/**
* LDAP User Provider
@@ -211,7 +211,7 @@ class LdapUserProvider implements UserProviderInterface
$attributes = array('is_ldap_user' => 1);
if (! empty($this->language)) {
- $attributes['language'] = Language::findCode($this->language);
+ $attributes['language'] = LanguageModel::findCode($this->language);
}
return $attributes;