Browse files

Merge branch 'MDL-29846_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents 6e1f50f + f976adc commit 85d7ec9052de8f42c2976c66ced7a132869a97fe Sam Hemelryk committed Dec 20, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 admin/qbehaviours.php
View
7 admin/qbehaviours.php
@@ -61,9 +61,10 @@
}
foreach ($counts as $behaviour => $count) {
if (!array_key_exists($behaviour, $behaviours)) {
- $counts['missingtype'] += $count;
+ $counts['missing'] += $count;
}
}
+$needed['missing'] = true;
// Work of the correct sort order.
$config = get_config('question');
@@ -181,7 +182,7 @@
unset($disabledbehaviours[$key]);
set_config('disabledbehaviours', implode(',', $disabledbehaviours), 'question');
}
- $behaviourorder = explode(',', $config->behavioursortorder);
+ $behaviourorder = array_keys($sortedbehaviours);
if (($key = array_search($delete, $behaviourorder)) !== false) {
unset($behaviourorder[$key]);
set_config('behavioursortorder', implode(',', $behaviourorder), 'question');
@@ -249,7 +250,7 @@
$row[] = '';
}
- // Are people allowed to create new questions of this type?
+ // Are people allowed to select this behaviour?
$rowclass = '';
if ($archetypal[$behaviour]) {
$enabled = array_search($behaviour, $disabledbehaviours) === false;

0 comments on commit 85d7ec9

Please sign in to comment.