mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
glossary MDL-22678 Fixed some issues with glossary entry popups
This commit is contained in:
parent
ece2c44fe7
commit
aa87cde4b5
3 changed files with 6 additions and 4 deletions
|
@ -136,7 +136,9 @@ function glossary_filter($courseid, $text) {
|
|||
$encodedconcept = urlencode($concept->concept);
|
||||
$title = str_replace('"', "'", strip_tags($glossaryname.': '.$concept->concept));
|
||||
}
|
||||
$link = new moodle_url('/mod/glossary/showentry.php', array('courseid'=>$courseid, 'concept'=>$encodedconcept));
|
||||
//hardcoding dictionary format in the URL rather than defaulting to the current glossary format which may not work in a popup.
|
||||
//for example "entry list" means the popup would only contain a link that opens another popup.
|
||||
$link = new moodle_url('/mod/glossary/showentry.php', array('courseid'=>$courseid, 'concept'=>$encodedconcept, 'displayformat'=>'dictionary'));
|
||||
$href_tag_begin = html_writer::start_tag('a', array(
|
||||
'href'=>$link,
|
||||
'title'=>$title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue