mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
glossary MDL-23717 fixed random quote block add entry link
This commit is contained in:
parent
fe020fb64b
commit
9f76d281af
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class block_glossary_random extends block_base {
|
|||
//Obtain the visible property from the instance
|
||||
if ($cm->uservisible) {
|
||||
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 />';
|
||||
} else {
|
||||
$this->content->footer = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue