glossary MDL-23717 fixed random quote block add entry link
authorAndrew Davis <andrew@affinitysoftware.net>
Mon, 9 Aug 2010 03:55:55 +0000 (03:55 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Mon, 9 Aug 2010 03:55:55 +0000 (03:55 +0000)
blocks/glossary_random/block_glossary_random.php

index bff459c..b70173e 100644 (file)
@@ -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 = '';