Merge branch 'MDL-71569_Summarydata' of https://github.com/brickfield/moodle into MOODLE_311_STABLE

This commit is contained in:
Víctor Déniz 2021-05-13 22:40:15 +01:00
commit 439d1cf29d
2 changed files with 24 additions and 2 deletions

View file

@ -1,7 +1,23 @@
# Accessibility plugin #
# Brickfield accessibility tool plugin #
Copyright (C) 2021 [Brickfield Education Labs](https://www.brickfield.ie/)
The Accessibility admin tool plugin provides a simple means of checking content for any accessibility issues.
Created by an enthusiastic team from Brickfield Education Labs, including:
* Karen Holland
* Gavin Henrick
* Mike Churchward
* Renée Mackey
* Laia Joana Canet
* Jay Churchward
* Paul Ffrench
* Holly Lynn
* Michael Pound
* Max Larkin
with a little help from our friends.
Portions of the htmlchecker files were derived from the ["Quail PHP Accessibility Library"](https://code.google.com/archive/p/quail-lib/).
The Quail library (Copyright (C) 2009 Kevin Miller) is licensed under [GNU GPL v3](http://www.gnu.org/licenses/gpl.html).
See the LICENSE_QUAIL.txt file in this directory for original Quail license information.

View file

@ -85,6 +85,12 @@ class brickfieldconnect extends curl {
}
$headers = $this->get_common_headers();
// Sanity-check $headers 'id' value.
if (!isset($headers['id'])) {
return false;
}
$this->set_headers($headers);
$summary = accessibility::get_summary_data($headers['id']);
$body = json_encode($summary, JSON_UNESCAPED_SLASHES);