Issue Details (XML | Word | Printable)

Key: MDL-20693
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Petr Skoda
Reporter: Petr Skoda
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-20676

new NO_DEBUG_DISPLAY define which disables all debugging and errors in output

Created: 01/Nov/09 04:30 AM   Updated: 01/Nov/09 06:06 AM
Return to search
Component/s: Administration
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Petr Skoda
Security Level: None
Resolved date: 01/Nov/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
Needed in all scripts that serve binary content or strict XML.

Replaces:
* disable_debugging() - it did not work much because trigger_error was getting to output
* MOODLE_SANE_OUTPUT which was a bit confusing for most devs except ML, it was altering our magic quotes too which might cause major problems in our libs
* various $CFG->debug hacks - CFG should not be modified on the fly

The name was derived from $CFG->debugdisplay - the NO_DEBUG_DISPLAY overrides this setting when debug & errors do not make much sense in output

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 01/Nov/09 06:06 AM
done