summaryrefslogtreecommitdiff
path: root/app/User
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
commit14713b0ec7ed93ca45578da069ad4e19a7d8addf (patch)
tree79972d53f6091a1ddb17f64a6a05a5523f5d5168 /app/User
parent936376ffe74c583d3cb819e98f53a85137fdf8bc (diff)
Rename all models
Diffstat (limited to 'app/User')
-rw-r--r--app/User/Avatar/GravatarProvider.php2
-rw-r--r--app/User/LdapUserProvider.php4
2 files changed, 3 insertions, 3 deletions
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;