Skip to content
Snippets Groups Projects
Commit 60efe5d4 authored by Ron Lucke's avatar Ron Lucke Committed by David Siegfried
Browse files

fixes #1172

Closes #1172

Merge request studip/studip!843
parent e5245357
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ class GlobalSearchCourseware extends GlobalSearchModule implements GlobalSearchF
'name' => self::mark($structural_element->title, $search, true),
'description' => $description,
'url' => $pageData['url'],
'img' => $structural_element->image ? $structural_element->getImageUrl(): null,
'img' => $structural_element->image ? $structural_element->getImageUrl() : Icon::create('courseware')->asImagePath(),
'additional' => '<a href="' . $pageData['originUrl'] . '" title="' . $pageData['originName'] . '">' . $pageData['originName'] . '</a>',
'date' => $date->format('d.m.Y H:i'),
'structural-element-id' => $structural_element->id
......@@ -171,7 +171,10 @@ class GlobalSearchCourseware extends GlobalSearchModule implements GlobalSearchF
public static function getSearchURL($searchterm)
{
return null;
return URLHelper::getURL('dispatch.php/search/globalsearch', [
'q' => $searchterm,
'category' => self::class
]);
}
}
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