summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-31 22:42:50 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-31 22:42:50 -0400
commit92aba95959633eee824e2d19e12adc7921d31431 (patch)
tree57e8deada057a4bad6fb0e2fe28d438f8856ad53
parent4987e245bb629e3171425bf16db341c5c3a7c3c7 (diff)
Fix typo after refactoring
-rw-r--r--app/Controller/BaseController.php2
-rw-r--r--app/Controller/FileViewerController.php2
-rw-r--r--app/User/LdapUserProvider.php1
3 files changed, 3 insertions, 2 deletions
diff --git a/app/Controller/BaseController.php b/app/Controller/BaseController.php
index 36871bb4..5f6976ad 100644
--- a/app/Controller/BaseController.php
+++ b/app/Controller/BaseController.php
@@ -77,7 +77,7 @@ abstract class BaseController extends Base
$model = 'projectFile';
if ($task_id > 0) {
- $model = 'taskFile';
+ $model = 'taskFileModel';
$project_id = $this->taskFinderModel->getProjectId($task_id);
if ($project_id !== $this->request->getIntegerParam('project_id')) {
diff --git a/app/Controller/FileViewerController.php b/app/Controller/FileViewerController.php
index 245845c7..518f5b0b 100644
--- a/app/Controller/FileViewerController.php
+++ b/app/Controller/FileViewerController.php
@@ -45,7 +45,7 @@ class FileViewerController extends BaseController
$type = $this->helper->file->getPreviewType($file['name']);
$params = array('file_id' => $file['id'], 'project_id' => $this->request->getIntegerParam('project_id'));
- if ($file['model'] === 'taskFile') {
+ if ($file['model'] === 'taskFileModel') {
$params['task_id'] = $file['task_id'];
}
diff --git a/app/User/LdapUserProvider.php b/app/User/LdapUserProvider.php
index 274d7665..8ea89763 100644
--- a/app/User/LdapUserProvider.php
+++ b/app/User/LdapUserProvider.php
@@ -88,6 +88,7 @@ class LdapUserProvider implements UserProviderInterface
* @param string $role
* @param string[] $groupIds
* @param string $photo
+ * @param string $language
*/
public function __construct($dn, $username, $name, $email, $role, array $groupIds, $photo = '', $language = '')
{