Skip to content

Commit

Permalink
V2.8.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Dec 11, 2014
1 parent 7338983 commit e386424
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
8 changes: 6 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,13 @@ can be really useful in visualising the issue along with any files you consider

Version Information
===================
5th December 2014 Version 2.8.1.1
1. New 'Show section summary when collapsed' feture gratefully funded by 'Te Rito Maioha Early Childhood New Zealand - https://ecnz.ac.nz'.
11th December 2014 Version 2.8.1.1
1. New 'Show section summary when collapsed' feature gratefully funded by 'Te Rito Maioha Early Childhood New Zealand - https://ecnz.ac.nz'.
2. Fix CONTRIB-5472.
3. Integrated 'Use core required_param for toggle parameters.': https://github.com/gjb2048/moodle-format_topcoll/pull/12
"This work was made possible through funding from Te Rito Maioha Early Childhood New Zealand".
Improves on work instigated in CONTRIB-5211 and related to MDL-46754.
4. Improved HTTP protocol handling in 'settopcollpref.php'.

16th November 2014 Version 2.8.1
1. Stable version for Moodle 2.8.
Expand Down
12 changes: 8 additions & 4 deletions settopcollpref.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@
// Get and set the value.
$value = required_topcoll_param('value');
// Update
if (!set_user_preference($name, $value)) {
print_error('errorsettinguserpref');
if ($value) {
if (!set_user_preference($name, $value)) {
print_error('errorsettinguserpref');
}
echo 'OK';
} else {
header('HTTP/1.1 406 Not Acceptable');
echo 'Not Acceptable';
}

echo 'OK';
2 changes: 1 addition & 1 deletion togglelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function clean_topcoll_param($param) {
for ($i = 0; $i < $chars; $i++) {
$charval = ord($param[$i]);
if (($charval < 58) || ($charval > 121)) {
return '';
return false;
}
}
return $param;
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2014120300;
$plugin->version = 2014121100;
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2014111000.00; // 2.8 (Build: 20141110).
$plugin->component = 'format_topcoll';
Expand Down

0 comments on commit e386424

Please sign in to comment.