mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-20693 new NO_DEBUG_DISPLAY define
This commit is contained in:
parent
3c1ea58b46
commit
2e9b772fb8
16 changed files with 87 additions and 88 deletions
|
@ -1,8 +1,11 @@
|
|||
<?PHP // $Id$
|
||||
<?PHP
|
||||
// This function fetches user pictures from the data directory
|
||||
// Syntax: pix.php/userid/f1.jpg or pix.php/userid/f2.jpg
|
||||
// OR: ?file=userid/f1.jpg or ?file=userid/f2.jpg
|
||||
|
||||
// disable moodle specific debug messages and any errors in output
|
||||
define('NO_DEBUG_DISPLAY', true);
|
||||
|
||||
require_once('../config.php');
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
|
||||
|
@ -12,9 +15,6 @@
|
|||
redirect($OUTPUT->old_icon_url('u/f1'));
|
||||
}
|
||||
|
||||
// disable moodle specific debug messages
|
||||
disable_debugging();
|
||||
|
||||
$relativepath = get_file_argument();
|
||||
|
||||
$args = explode('/', trim($relativepath, '/'));
|
||||
|
@ -33,4 +33,3 @@
|
|||
|
||||
// picture was deleted - use default instead
|
||||
redirect($OUTPUT->old_icon_url('u/f1'));
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue