mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-21402 fixed nasty regression :-D
This commit is contained in:
parent
3157cd3dbd
commit
d194928e94
@ -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…
x
Reference in New Issue
Block a user