mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-21402 fixed nasty regression :-D
This commit is contained in:
parent
3157cd3dbd
commit
d194928e94
1 changed files with 1 additions and 1 deletions
|
@ -1207,7 +1207,7 @@ class required_data_for_js extends required_js_code {
|
|||
public function __construct(page_requirements_manager $manager, $variable, $data) {
|
||||
parent::__construct($manager);
|
||||
$this->variable = $variable;
|
||||
$this->data = json_encode($data);
|
||||
$this->data = $data;
|
||||
// json_encode immediately, so that if $data is an object (and therefore was
|
||||
// passed in by reference) we get the data at the time the call was made, and
|
||||
// not whatever the data happened to be when this is output.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue