mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-68588 Backup: Hide ->backuptempdir in exception info
This commit is contained in:
parent
49a9e8b07d
commit
82850a0418
2 changed files with 2 additions and 2 deletions
|
@ -551,7 +551,7 @@ function get_exception_info($ex) {
|
||||||
// Remove some absolute paths from message and debugging info.
|
// Remove some absolute paths from message and debugging info.
|
||||||
$searches = array();
|
$searches = array();
|
||||||
$replaces = array();
|
$replaces = array();
|
||||||
$cfgnames = array('tempdir', 'cachedir', 'localcachedir', 'themedir', 'dataroot', 'dirroot');
|
$cfgnames = array('backuptempdir', 'tempdir', 'cachedir', 'localcachedir', 'themedir', 'dataroot', 'dirroot');
|
||||||
foreach ($cfgnames as $cfgname) {
|
foreach ($cfgnames as $cfgname) {
|
||||||
if (property_exists($CFG, $cfgname)) {
|
if (property_exists($CFG, $cfgname)) {
|
||||||
$searches[] = $CFG->$cfgname;
|
$searches[] = $CFG->$cfgname;
|
||||||
|
|
|
@ -79,7 +79,7 @@ class core_setuplib_testcase extends advanced_testcase {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
// This doesn't test them all possible ones, but these are set for unit tests.
|
// 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 = '';
|
$fixture = '';
|
||||||
$expected = '';
|
$expected = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue