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

use same navigation title for older Stud.IP, re #177

parent 7fa0d471
No related branches found
No related tags found
No related merge requests found
...@@ -92,14 +92,9 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P ...@@ -92,14 +92,9 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P
$path = vips_contents_nav_path(); $path = vips_contents_nav_path();
if (Navigation::hasItem($path)) { if (Navigation::hasItem($path)) {
if (version_compare($GLOBALS['SOFTWARE_VERSION'], '5.0', '<')) { $nav_item = new Navigation(_vips('Aufgaben'));
$nav_item = new Navigation(_vips('Meine Aufgaben')); $nav_item->setImage(Icon::create(vips_image_url('vips_blue.svg')));
} else { $nav_item->setDescription(_vips('Erstellen und Verwalten von Aufgaben in Vips'));
$nav_item = new Navigation(_vips('Aufgaben'));
$nav_item->setImage(Icon::create(vips_image_url('vips_blue.svg')));
$nav_item->setDescription(_vips('Erstellen und Verwalten von Aufgaben in Vips'));
}
Navigation::addItem($path . '/vips', $nav_item); Navigation::addItem($path . '/vips', $nav_item);
$sub_item = new Navigation(_vips('Aufgabenblätter'), $this->url_for('pool/assignments')); $sub_item = new Navigation(_vips('Aufgabenblätter'), $this->url_for('pool/assignments'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment