]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16720 The edit icon in the quiz preview screen pops up the edit form in a window...
authortjhunt <tjhunt>
Sun, 28 Sep 2008 08:59:50 +0000 (08:59 +0000)
committertjhunt <tjhunt>
Sun, 28 Sep 2008 08:59:50 +0000 (08:59 +0000)
question/type/questiontype.php

index dde40b10ffa49c57213cd366b4b5d1e7d45cd16f..4e6acb78cfbb34fb7f583e3841593c028dfc1ea4 100644 (file)
@@ -920,8 +920,9 @@ class default_questiontype {
         if (question_has_capability_on($question, 'edit')) {
             $stredit = get_string('edit');
             $linktext = '<img src="'.$CFG->pixpath.'/t/edit.gif" alt="'.$stredit.'" />';
-            $editlink = link_to_popup_window('/question/question.php?inpopup=1&amp;id='.$question->id.$cmorcourseid,
-                                             'editquestion', $linktext, 450, 550, $stredit, '', true);
+            $editlink = link_to_popup_window('/question/question.php?inpopup=1&amp;id=' .
+                    $question->id . $cmorcourseid, 'editquestion',
+                    $linktext, false, false, $stredit, '', true);
         }
 
         $generalfeedback = '';