Permalink
Browse files

MDL-26757 fixed regression in glossary recent activity block url

  • Loading branch information...
1 parent 1c712d9 commit f8fb37424efff47286c4f75a2fd523f7ab7d4651 @nebgor nebgor committed Mar 11, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 mod/glossary/lib.php
View
@@ -301,12 +301,11 @@ function glossary_print_recent_activity($course, $viewfullnames, $timestart) {
if ($entrycount < GLOSSARY_RECENT_ACTIVITY_LIMIT) {
if ($entry->approved) {
$dimmed = '';
- $urlparams = array('g' => $entry->glossaryid, 'mode' => 'entry', 'hook' => $entry->id);
+ $link = $CFG->wwwroot.'/mod/glossary/view.php?g='.$entry->glossaryid.'&amp;mode=entry&amp;hook='.$entry->id;
} else {
$dimmed = ' dimmed_text';
- $urlparams = array('id' => $ids[$entry->glossaryid], 'mode' => 'approval', 'hook' => format_text($entry->concept, true));
+ $link = $CFG->wwwroot.'/mod/glossary/view.php?id='.$ids[$entry->glossaryid].'&amp;mode=approval&amp;hook='.format_text($entry->concept, true);
}
- $link = new moodle_url($CFG->wwwroot.'/mod/glossary/view.php' , $urlparams);
echo '<div class="head'.$dimmed.'">';
echo '<div class="date">'.userdate($entry->timemodified, $strftimerecent).'</div>';
echo '<div class="name">'.fullname($entry, $viewfullnames).'</div>';

0 comments on commit f8fb374

Please sign in to comment.