From e92977d3de37e5e1eff9ad4d2e0f69eb7f497c1e Mon Sep 17 00:00:00 2001 From: Daren Chandisingh Date: Wed, 26 Jan 2011 15:20:28 +0000 Subject: [PATCH] [MDL-25780] Fixed missing error string substitution --- install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index ab1781878e1..d4f2699b825 100644 --- a/install.php +++ b/install.php @@ -306,7 +306,7 @@ if ($config->stage == INSTALL_DOWNLOADLANG) { $a = new stdClass(); $a->parent = dirname($CFG->dataroot); $a->dataroot = $CFG->dataroot; - if (!is_writable(dirname($CFG->dataroot))) { + if (!is_writable($a->parent)) { $hint_dataroot = get_string('pathsroparentdataroot', 'install', $a); $config->stage = INSTALL_PATHS; } else { @@ -317,7 +317,7 @@ if ($config->stage == INSTALL_DOWNLOADLANG) { } } else if (!install_init_dataroot($CFG->dataroot, $CFG->directorypermissions)) { - $hint_dataroot = get_string('pathserrcreatedataroot', 'install', $a); + $hint_dataroot = get_string('pathserrcreatedataroot', 'install', array('dataroot' => $CFG->dataroot)); $config->stage = INSTALL_PATHS; } -- 2.43.0