MDL-33653 fix preview links on calc qtype edit forms.

Also, refactor how we render preview icons, to eliminate duplication.
This commit is contained in:
Tim Hunt
2014-03-07 19:46:56 +00:00
parent 7756e2bc85
commit 8011be189e
9 changed files with 104 additions and 41 deletions
+1 -1
View File
@@ -660,7 +660,7 @@ function question_move_category_to_context($categoryid, $oldcontextid, $newconte
* be picked randomly.
* @param object $context context to run the preview in (affects things like
* filter settings, theme, lang, etc.) Defaults to $PAGE->context.
* @return string the URL.
* @return moodle_url the URL.
*/
function question_preview_url($questionid, $preferredbehaviour = null,
$maxmark = null, $displayoptions = null, $variant = null, $context = null) {