Skip to content

Commit

Permalink
MDL-26757 fixed regression in glossary recent activity block url
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Mar 11, 2011
1 parent 1c712d9 commit f8fb374
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mod/glossary/lib.php
Expand Up @@ -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>';
Expand Down

0 comments on commit f8fb374

Please sign in to comment.