mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-12894 Fixing language string mess (language packs containing \n) & moved them to the controllers,
also fixed a few typos and a || instead of && bug. This all relates to the CLI installer.
This commit is contained in:
parent
b9f49659b6
commit
e3cd54731c
5 changed files with 84 additions and 42 deletions
|
@ -2354,7 +2354,7 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
|
|||
if ($return) {
|
||||
return $output;
|
||||
} else {
|
||||
console_write(STDOUT,$output,'',false);
|
||||
console_write(STDOUT,$output . "\n",'',false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -5762,7 +5762,7 @@ function error ($message, $link='') {
|
|||
global $CFG, $SESSION, $THEME;
|
||||
$message = clean_text($message); // In case nasties are in here
|
||||
|
||||
if (defined('CLI_UPGRADE') || CLI_UPGRADE) {
|
||||
if (defined('CLI_UPGRADE') && CLI_UPGRADE) {
|
||||
console_write(STDERR,$message,'',false);
|
||||
die ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue