diff --git a/Coursehistory.class.php b/Coursehistory.class.php index bd7297fa25798ec3a8da7f6b646d6a1503ed2a46..630443318e36e2097406da5c29bb4b07bc0fbf58 100755 --- a/Coursehistory.class.php +++ b/Coursehistory.class.php @@ -6,7 +6,6 @@ */ class Coursehistory extends StudIPPlugin implements SystemPlugin, AdminCourseAction { - public function __construct() { parent::__construct(); @@ -68,11 +67,12 @@ class Coursehistory extends StudIPPlugin implements SystemPlugin, AdminCourseAct */ public function perform($unconsumed_path) { - $dispatcher = new Trails_Dispatcher( + $dispatcher = new Trails_Dispatcher( $this->getPluginPath(), rtrim(PluginEngine::getLink($this, [], null), '/'), 'show' ); + $dispatcher->plugin = $this; $dispatcher->dispatch($unconsumed_path); } diff --git a/controllers/show.php b/controllers/show.php index aee92f78c1125d30dd12e701982d951db95eb6d7..1d6015de30b28ab4afa6d4e96de54bcbdc641804 100755 --- a/controllers/show.php +++ b/controllers/show.php @@ -31,15 +31,6 @@ class ShowController extends StudipController $this->log_actions = $this->getLogEvents(); } - /** - * Get necessary log actions - * @return array - */ - protected function getLogActions() - { - return DBManager::get()->fetchAll("SELECT `action_id`, `name`, `description` FROM `log_actions` ORDER BY `name`, `description`"); - } - /** * Returns all log-events for given course */ @@ -61,22 +52,4 @@ class ShowController extends StudipController }); return $results; } - - /** - * Custom url for - * @param string $to - * @return a - */ - public function url_for($to = '') - { - $args = func_get_args(); - $params = []; - if (is_array(end($args))) { - $params = array_pop($args); - } - $args = array_map('urlencode', $args); - $args[0] = $to; - - return PluginEngine::getURL($this->dispatcher->plugin, $params, join(' / ', $args)); - } } diff --git a/plugin.manifest b/plugin.manifest index edd79b712893b6536d3f6979c0356f0702dc2147..9795aa4554b95a519084aa8590be2c60c193bfcd 100755 --- a/plugin.manifest +++ b/plugin.manifest @@ -3,4 +3,4 @@ pluginclassname=Coursehistory origin=Vec version=3.2 studipMinVersion=4.3 -studipMaxVersion=4.3.99 +studipMaxVersion=4.4.99 diff --git a/views/show/index.php b/views/show/index.php index 2361043e945e1edeedeb53ea43f3a818a953d18e..b4fa5508893aabc40bc1993f0e94ecdbdd49428c 100755 --- a/views/show/index.php +++ b/views/show/index.php @@ -1,8 +1,5 @@ <? if (!empty($log_actions)) : ?> <table class="default collapsable"> - <caption> - <?= _('Änderungsverlauf') ?> - </caption> <colgroup> <col style="width: 150px"> <col>