Skip to content

Commit

Permalink
Plugin: Move XAPI/TopLinks course tools to authoring category - refs …
Browse files Browse the repository at this point in the history
…BT#19464
  • Loading branch information
AngelFQC committed Jan 1, 2022
1 parent 05d81c9 commit b5ae234
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion plugin/toplinks/src/TopLinksPlugin.php
Expand Up @@ -52,7 +52,8 @@ public function addToolInCourse(int $courseId, TopLink $link)
$link->getTitle(),
$courseId,
'external_link.png',
'toplinks/start.php?'.http_build_query(['link' => $link->getId()])
'../plugin/toplinks/start.php?'.http_build_query(['link' => $link->getId()]),
'authoring'
);

if (null === $tool) {
Expand Down
5 changes: 3 additions & 2 deletions plugin/xapi/src/XApiPlugin.php
Expand Up @@ -323,7 +323,8 @@ public function addCourseToolForTinCan($courseId)
$this->get_lang('ToolTinCan'),
$courseId,
'sessions_category.png',
'xapi/start.php'
'../plugin/xapi/start.php',
'authoring'
);
}

Expand Down Expand Up @@ -602,6 +603,6 @@ private function deleteCourseTools()
{
Database::getManager()
->createQuery('DELETE FROM ChamiloCourseBundle:CTool t WHERE t.category = :category AND t.link LIKE :link')
->execute(['category' => 'plugin', 'link' => 'xapi/start.php%']);
->execute(['category' => 'authoring', 'link' => '../plugin/xapi/start.php%']);
}
}

0 comments on commit b5ae234

Please sign in to comment.