Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Namespace changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hussein-Khalil committed Oct 28, 2019
1 parent fa1bc51 commit e37386e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Controller/CommentActionsController.php
@@ -1,5 +1,5 @@
<?php
namespace Kanboard\Plugin\CommentActions\Controller;
namespace Kanboard\Plugin\KanboardCommentActions\Controller;


use Kanboard\Controller\CommentController;
Expand Down
12 changes: 6 additions & 6 deletions Plugin.php
@@ -1,6 +1,6 @@
<?php

namespace Kanboard\Plugin\CommentActions;
namespace Kanboard\Plugin\KanboardCommentActions;

use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
Expand All @@ -10,7 +10,7 @@ class Plugin extends Base
public function initialize()
{
$this->template->hook->attachCallable("template:task:comment:after-texteditor",
"CommentActions:comment_actions", function ($variables) {
"KanboardCommentActions:comment_actions", function ($variables) {
if (!array_key_exists('project_id', $variables)) {
return array();
}
Expand All @@ -20,7 +20,7 @@ public function initialize()
);
});
$this->template->hook->attachCallable("template:task:show:after-texteditor",
"CommentActions:comment_actions", function ($variables) {
"KanboardCommentActions:comment_actions", function ($variables) {
if (!array_key_exists('project_id', $variables)) {
return array();
}
Expand All @@ -29,9 +29,9 @@ public function initialize()
'users_list' => $this->getAllProjectUsers($projectId),
);
});
$this->template->setTemplateOverride('task_comments/create', 'CommentActions:task_comments/create');
$this->template->setTemplateOverride('comment/create', 'CommentActions:comment/create');
$this->template->setTemplateOverride('comment/edit', 'CommentActions:comment/edit');
$this->template->setTemplateOverride('task_comments/create', 'KanboardCommentActions:task_comments/create');
$this->template->setTemplateOverride('comment/create', 'KanboardCommentActions:comment/create');
$this->template->setTemplateOverride('comment/edit', 'KanboardCommentActions:comment/edit');
}

public function getAllProjectUsers($project_id)
Expand Down
2 changes: 1 addition & 1 deletion Template/comment/create.php
Expand Up @@ -6,7 +6,7 @@
</li>
</ul>
</div>
<form method="post" action="<?= $this->url->href('CommentActionsController', 'save', array('plugin' => 'CommentActions', 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
<form method="post" action="<?= $this->url->href('CommentActionsController', 'save', array('plugin' => 'KanboardCommentActions', 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->textEditor('comment', $values, $errors, array('autofocus' => true, 'required' => true)) ?>

Expand Down
2 changes: 1 addition & 1 deletion Template/comment/edit.php
Expand Up @@ -2,7 +2,7 @@
<h2><?= t('Edit a comment') ?></h2>
</div>

<form method="post" action="<?= $this->url->href('CommentActionsController', 'update', array('plugin' => 'CommentActions', 'task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id'])) ?>" autocomplete="off">
<form method="post" action="<?= $this->url->href('CommentActionsController', 'update', array('plugin' => 'KanboardCommentActions', 'task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id'])) ?>" autocomplete="off">
<?= $this->form->csrf() ?>

<?= $this->form->textEditor('comment', $values, $errors, array('autofocus' => true, 'required' => true)) ?>
Expand Down
2 changes: 1 addition & 1 deletion Template/task_comments/create.php
@@ -1,6 +1,6 @@
<form method="post"
action="<?= $this->url->href('CommentActionsController', 'save',
array('plugin' => 'CommentActions', 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"
array('plugin' => 'KanboardCommentActions', 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"
autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->hidden('task_id', $values) ?>
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -10,7 +10,7 @@ services:
ports:
- "80:80"
volumes:
- .:/var/www/app/plugins/CommentActions
- .:/var/www/app/plugins/KanboardCommentActions
environment:
DATABASE_URL: mysql://kb:kb-secret@db/kanboard
<<: *xdebug-settings
Expand Down

0 comments on commit e37386e

Please sign in to comment.