MDL-68588 Backup: Hide ->backuptempdir in exception info

This commit is contained in:
Matteo Scaramuccia 2020-05-02 19:32:06 +02:00
parent 49a9e8b07d
commit 82850a0418
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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 = '';