mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
highlighting sloppy globals hacks
This commit is contained in:
parent
3f975b9c6b
commit
0a9d1b3b13
3 changed files with 7 additions and 3 deletions
|
@ -146,7 +146,10 @@
|
|||
|
||||
// Cycle through all the questions in order and print them
|
||||
|
||||
global $qnum; //TODO: ugly globals hack for survey_print_*()
|
||||
global $checklist; //TODO: ugly globals hack for survey_print_*()
|
||||
$qnum = 0;
|
||||
$checklist = array();
|
||||
foreach ($questionorder as $key => $val) {
|
||||
$question = $questions["$val"];
|
||||
$question->id = $val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue