mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
Merge branch 'm40_MDL-68588_Hide_Backuptempdir_From_Message_And_Debuginfo' of https://github.com/scara/moodle
This commit is contained in:
commit
3303daf3bf
@ -551,7 +551,7 @@ function get_exception_info($ex) {
|
||||
// Remove some absolute paths from message and debugging info.
|
||||
$searches = array();
|
||||
$replaces = array();
|
||||
$cfgnames = array('tempdir', 'cachedir', 'localcachedir', 'themedir', 'dataroot', 'dirroot');
|
||||
$cfgnames = array('backuptempdir', 'tempdir', 'cachedir', 'localcachedir', 'themedir', 'dataroot', 'dirroot');
|
||||
foreach ($cfgnames as $cfgname) {
|
||||
if (property_exists($CFG, $cfgname)) {
|
||||
$searches[] = $CFG->$cfgname;
|
||||
|
@ -79,7 +79,7 @@ class core_setuplib_testcase extends advanced_testcase {
|
||||
global $CFG;
|
||||
|
||||
// This doesn't test them all possible ones, but these are set for unit tests.
|
||||
$cfgnames = array('dataroot', 'dirroot', 'tempdir', 'cachedir', 'localcachedir');
|
||||
$cfgnames = array('dataroot', 'dirroot', 'tempdir', 'backuptempdir', 'cachedir', 'localcachedir');
|
||||
|
||||
$fixture = '';
|
||||
$expected = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user