Skip to content
Snippets Groups Projects
Commit 5c5f4c6b authored by David Siegfried's avatar David Siegfried
Browse files

prepare for v4.4.99, fixes #5

parent 4374ed80
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
*/ */
class Coursehistory extends StudIPPlugin implements SystemPlugin, AdminCourseAction class Coursehistory extends StudIPPlugin implements SystemPlugin, AdminCourseAction
{ {
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
...@@ -73,6 +72,7 @@ class Coursehistory extends StudIPPlugin implements SystemPlugin, AdminCourseAct ...@@ -73,6 +72,7 @@ class Coursehistory extends StudIPPlugin implements SystemPlugin, AdminCourseAct
rtrim(PluginEngine::getLink($this, [], null), '/'), rtrim(PluginEngine::getLink($this, [], null), '/'),
'show' 'show'
); );
$dispatcher->plugin = $this; $dispatcher->plugin = $this;
$dispatcher->dispatch($unconsumed_path); $dispatcher->dispatch($unconsumed_path);
} }
......
...@@ -31,15 +31,6 @@ class ShowController extends StudipController ...@@ -31,15 +31,6 @@ class ShowController extends StudipController
$this->log_actions = $this->getLogEvents(); $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 * Returns all log-events for given course
*/ */
...@@ -61,22 +52,4 @@ class ShowController extends StudipController ...@@ -61,22 +52,4 @@ class ShowController extends StudipController
}); });
return $results; 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));
}
} }
...@@ -3,4 +3,4 @@ pluginclassname=Coursehistory ...@@ -3,4 +3,4 @@ pluginclassname=Coursehistory
origin=Vec origin=Vec
version=3.2 version=3.2
studipMinVersion=4.3 studipMinVersion=4.3
studipMaxVersion=4.3.99 studipMaxVersion=4.4.99
<? if (!empty($log_actions)) : ?> <? if (!empty($log_actions)) : ?>
<table class="default collapsable"> <table class="default collapsable">
<caption>
<?= _('Änderungsverlauf') ?>
</caption>
<colgroup> <colgroup>
<col style="width: 150px"> <col style="width: 150px">
<col> <col>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment