Permalink
Browse files

MDL-28437 Question bank pages should all use General type: admin.

  • Loading branch information...
1 parent ac30618 commit ceedbe876d59d997676d04a86e437137cb11d29b @timhunt timhunt committed Jul 25, 2011
Showing with 2 additions and 9 deletions.
  1. +0 −1 mod/quiz/edit.php
  2. +0 −1 question/category.php
  3. +0 −1 question/edit.php
  4. +1 −1 question/editlib.php
  5. +0 −2 question/export.php
  6. +0 −2 question/import.php
  7. +1 −1 question/question.php
View
@@ -142,7 +142,6 @@ function module_specific_controls($totalnumber, $recurse, $category, $cmid, $cmo
$quizhasattempts = quiz_has_attempts($quiz->id);
$PAGE->set_url($thispageurl);
-$PAGE->set_pagelayout('admin');
$pagetitle = get_string('editingquiz', 'quiz');
if ($quiz_reordertool) {
View
@@ -38,7 +38,6 @@
}
}
$PAGE->set_url($url);
- $PAGE->set_pagelayout('standard');
$qcobject = new question_category_object($pagevars['cpage'], $thispageurl, $contexts->having_one_edit_tab_cap('categories'), $param->edit, $pagevars['cat'], $param->delete,
$contexts->having_cap('moodle/question:add'));
View
@@ -56,7 +56,6 @@
$url->param('cmid', $cmid);
}
$PAGE->set_url($url);
- $PAGE->set_pagelayout('standard');
list($thispageurl, $contexts, $cmid, $cm, $module, $pagevars) =
question_edit_setup('questions', '/question/edit.php');
View
@@ -1546,7 +1546,7 @@ function question_edit_setup($edittab, $baseurl, $requirecmid = false, $requirec
$contexts = null;
}
-
+ $PAGE->set_pagelayout('admin');
$pagevars['qpage'] = optional_param('qpage', -1, PARAM_INT);
View
@@ -13,8 +13,6 @@
require_once("editlib.php");
require_once("export_form.php");
- $PAGE->set_pagelayout('standard');
-
list($thispageurl, $contexts, $cmid, $cm, $module, $pagevars) =
question_edit_setup('export', '/question/export.php');
View
@@ -26,8 +26,6 @@
print_error('nocategory','quiz');
}
-$PAGE->set_pagelayout('standard');
-
$categorycontext = get_context_instance_by_id($category->contextid);
$category->context = $categorycontext;
//this page can be called without courseid or cmid in which case
View
@@ -80,14 +80,14 @@
$thiscontext = get_context_instance(CONTEXT_MODULE, $cmid);
} elseif ($courseid) {
require_login($courseid, false);
- $PAGE->set_pagelayout('course');
$thiscontext = get_context_instance(CONTEXT_COURSE, $courseid);
$module = null;
$cm = null;
} else {
print_error('missingcourseorcmid', 'question');
}
$contexts = new question_edit_contexts($thiscontext);
+$PAGE->set_pagelayout('admin');
if (optional_param('addcancel', false, PARAM_BOOL)) {
redirect($returnurl);

0 comments on commit ceedbe8

Please sign in to comment.