Permalink
Browse files

[MDL-25780] Fixed missing error string substitution

  • Loading branch information...
1 parent 8cdc85a commit e92977d3de37e5e1eff9ad4d2e0f69eb7f497c1e Daren Chandisingh committed Jan 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 install.php
View
@@ -306,7 +306,7 @@
$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 @@
}
} 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;
}

0 comments on commit e92977d

Please sign in to comment.