glossary MDL-23717 fixed random quote block add entry link

This commit is contained in:
Andrew Davis 2010-08-09 03:55:55 +00:00
parent fe020fb64b
commit 9f76d281af

View file

@ -150,7 +150,7 @@ class block_glossary_random extends block_base {
//Obtain the visible property from the instance //Obtain the visible property from the instance
if ($cm->uservisible) { if ($cm->uservisible) {
if (has_capability('mod/glossary:write', get_context_instance(CONTEXT_MODULE, $cm->id))) { if (has_capability('mod/glossary:write', get_context_instance(CONTEXT_MODULE, $cm->id))) {
$this->content->footer = '<a href="'.$CFG->wwwroot.'/mod/glossary/edit.php?id='.$cm->id $this->content->footer = '<a href="'.$CFG->wwwroot.'/mod/glossary/edit.php?cmid='.$cm->id
.'" title="'.$this->config->addentry.'">'.$this->config->addentry.'</a><br />'; .'" title="'.$this->config->addentry.'">'.$this->config->addentry.'</a><br />';
} else { } else {
$this->content->footer = ''; $this->content->footer = '';