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:
mjollnir_ 2008-01-09 23:15:44 +00:00
parent b9f49659b6
commit e3cd54731c
5 changed files with 84 additions and 42 deletions

View file

@ -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 ;
}