Issue Details (XML | Word | Printable)

Key: MDL-16672
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Tim Hunt
Reporter: Tim Hunt
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-16583

Output a standard set of config variables into JavaScript on every page

Created: 25/Sep/08 11:04 AM   Updated: 03/Oct/08 06:43 PM
Return to search
Component/s: Lib
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Matt Gibson and Tim Hunt
Security Level: None
Resolved date: 25/Sep/08
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
Mahara report they do this with good effect. http://moodle.org/mod/forum/discuss.php?d=106312#p468251, and it is needed for MDL-16671.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Tim Hunt added a comment - 25/Sep/08 11:12 AM
Currently we just have

'wwwroot' => $CFG->httpswwwroot, // Yes, really.
'pixpath' => $CFG->pixpath,
'modpixpath' => $CFG->modpixpath,


Matt Gibson added a comment - 01/Oct/08 07:08 PM
Hi Tim,

this looks to be very useful. How do I add another variable(s) to the list on a particular page - can it be done e.g. by feeding an array into a particular function?


Tim Hunt added a comment - 03/Oct/08 01:45 PM

Matt Gibson added a comment - 03/Oct/08 06:43 PM
I did read that when you first put it up but must have forgotten what was in it. Getting old :s Thanks for the reminder.