Commit aa8690f7 authored by Karen Holland's avatar Karen Holland Committed by Mike Churchward
Browse files

MDL-71569 Accessibility toolkit: Fix Summary data task failure

parent b697c3dd
# 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.
......@@ -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);
......@@ -249,4 +255,4 @@ class brickfieldconnect extends curl {
return self::$baseapiuri;
}
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment