From 82850a0418c4fbc1cf74eda815295ca392d17ff8 Mon Sep 17 00:00:00 2001 From: Matteo Scaramuccia Date: Sat, 2 May 2020 19:32:06 +0200 Subject: [PATCH] MDL-68588 Backup: Hide ->backuptempdir in exception info --- lib/setuplib.php | 2 +- lib/tests/setuplib_test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/setuplib.php b/lib/setuplib.php index 4aa3b9ad136..21315872f1f 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -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; diff --git a/lib/tests/setuplib_test.php b/lib/tests/setuplib_test.php index 6e3ce5bd19e..1e6c3b37c76 100644 --- a/lib/tests/setuplib_test.php +++ b/lib/tests/setuplib_test.php @@ -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 = '';