Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 1899a2c

Browse files
Merge branch '2-plugin-namespace-anderen' into 'master'
Resolve "Plugin Namespace änderen" See merge request ipunkt/officetools/kanboard/KanboardProjectInvitation!2
2 parents 957f532 + 6344301 commit 1899a2c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Controller/ProjectInviteController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Kanboard\Plugin\ProjectInvitation\Controller;
3+
namespace Kanboard\Plugin\KanboardProjectInvitation\Controller;
44

55
use Kanboard\Controller\BaseController;
66

Plugin.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Kanboard\Plugin\ProjectInvitation;
3+
namespace Kanboard\Plugin\KanboardProjectInvitation;
44

55
use Kanboard\Core\Plugin\Base;
66
use Kanboard\Core\Translator;
@@ -11,10 +11,10 @@ public function initialize()
1111
{
1212

1313
if (APP_VERSION < 'v1.2.11') {
14-
$this->template->setTemplateOverride('project_permission/users', 'ProjectInvitation:users-override');
14+
$this->template->setTemplateOverride('project_permission/users', 'KanboardProjectInvitation:users-override');
1515
} else {
1616
$this->template->hook->attachCallable('template:project-permission:after-adduser',
17-
'ProjectInvitation:users',
17+
'KanboardProjectInvitation:users',
1818
function ($project, $values, $errors) {
1919
$project_id = $this->request->getIntegerParam('project_id', $project['project_id']);
2020
return array(
@@ -29,7 +29,7 @@ function ($project, $values, $errors) {
2929
public function getClasses()
3030
{
3131
return array(
32-
'Plugin\ProjectInvitation\Controller' => array(
32+
'Plugin\KanboardProjectInvitation\Controller' => array(
3333
'ProjectInviteController',
3434
)
3535
);

Template/users-override.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<div class="panel">
6464
<form method="post"
6565
action="<?= $this->url->href('ProjectInviteController', 'inviteUser',
66-
array('plugin' => 'ProjectInvitation', 'project_id' => $project['id'])) ?>"
66+
array('plugin' => 'KanboardProjectInvitation', 'project_id' => $project['id'])) ?>"
6767
autocomplete="off" class="form-inline">
6868
<?= $this->form->csrf() ?>
6969
<?= $this->form->hidden('project_id', array('project_id' => $project['id'])) ?>

Template/users.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="panel">
33
<form method="post"
44
action="<?= $this->url->href('ProjectInviteController', 'inviteUser',
5-
array('plugin' => 'ProjectInvitation', 'project_id' => $project_id)) ?>"
5+
array('plugin' => 'KanboardProjectInvitation', 'project_id' => $project_id)) ?>"
66
autocomplete="off" class="form-inline">
77
<?= $this->form->csrf() ?>
88
<?= $this->form->hidden('project_id', array('project_id' => $project_id)) ?>

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
ports:
66
- "80:80"
77
volumes:
8-
- .:/var/www/app/plugins/ProjectInvitation
8+
- .:/var/www/app/plugins/KanboardProjectInvitation
99
- ./docker/conf.d/local.ini:/etc/php7/conf.d/local.ini
1010
- ./Data/config.php:/var/www/app/data/config.php
1111
environment:

0 commit comments

Comments
 (0)