From: tjhunt Date: Wed, 16 Apr 2008 16:56:33 +0000 (+0000) Subject: MDL-14392 - Notice from description question types when you don't have edit permission X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=096d42f47edbf78b11d7fa67847abc3307f031ab;p=moodle.git MDL-14392 - Notice from description question types when you don't have edit permission --- diff --git a/question/type/description/questiontype.php b/question/type/description/questiontype.php index 1a2434b553..0ac008c493 100644 --- a/question/type/description/questiontype.php +++ b/question/type/description/questiontype.php @@ -54,6 +54,7 @@ class description_qtype extends default_questiontype { } // For editing teachers print a link to an editing popup window + $editlink = ''; if (question_has_capability_on($question, 'edit')) { $stredit = get_string('edit'); $linktext = ''.$stredit.'';