Issue Details (XML | Word | Printable)

Key: MDLSITE-291
Type: Bug Bug
Status: Open Open
Priority: Trivial Trivial
Assignee: Martin Dougiamas
Reporter: Richard L. Enison
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 Community Sites

One of the most important variables in Moodle cannot be searched for in the Cross Ref. List

Created: 08/Nov/07 05:31 AM   Updated: 09/Nov/07 10:04 AM
Component/s: moodle.org

URL: http://xref.moodle.org/_variables/index.html
Participants: Martin Dougiamas and Richard L. Enison
Security Level: None


 Description  « Hide
According to the Variables index page in the Cross Reference Listing (xref.moodle.org), the variable $SESSION is referenced 717 times, while $session is only referenced 50 times, mostly in the Question module. But try clicking on $SESSION in the Variables list to find ANY of the 717 references. Oh, no you don't! It takes you to the page for $session. The PHP manual plainly states that variable names in PHP are case-sensitive. You would think the Cross Reference Listing would take that into account. It does list the upper- and lower-case names separately, but just try getting to the page for an upper-case name for which there is a variable with the corresponding lower-case name, and you can't get there from here. Too bad. Especially since in general, I would expect the upper-case variables to be much more important. So naturally it's programmed to favor the lower-case names, and cut-off the more important ones. Way to go.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas added a comment - 09/Nov/07 10:04 AM
Well, that site is automatically generated by some software we didn't write ... it's only meant as a guide. We don't really have time to fix/hack that software or the generated output...

You might want to get an IDE or just a good code editor to help navigate the code better ...