Skip to content
Snippets Groups Projects
Commit 2c0a2af2 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

also offer TestBlock in user context, fixes #132

parent 3183434b
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P
NotificationCenter::addObserver($this, 'userDidLeaveCourse', 'UserDidLeaveCourse');
NotificationCenter::addObserver($this, 'userDidMigrate', 'UserDidMigrate');
if (match_route('dispatch.php/course/courseware')) {
if (match_route('dispatch.php/*/courseware')) {
PageLayout::addHeadElement('script', [], 'var VIPS_BASE_URL = "' . dirname($this->url_for('sheets')) . '";');
PageLayout::addStylesheet($this->getPluginURL() . '/css/vips.css?v=1.8.7');
PageLayout::addScript($this->getPluginURL() . '/js/vips.js?v=1.8.7');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment