From: moodler Date: Tue, 17 Aug 2004 14:12:01 +0000 (+0000) Subject: Tweaks X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=94ba66ce0a6af17da76419a80300064f0e5a4624;p=moodle.git Tweaks --- diff --git a/install.php b/install.php index f23c39e428..42f2ac135c 100644 --- a/install.php +++ b/install.php @@ -202,7 +202,7 @@ if ($INSTALL['stage'] == 3) { error_reporting(0); // Hide errors - if (!($dbconnected = $db->Connect($INSTALL['dbhost'],$INSTALL['dbuser'],$INSTALL['dbpass'],$INSTALL['dbname']))) { + if (! $dbconnected = $db->Connect($INSTALL['dbhost'],$INSTALL['dbuser'],$INSTALL['dbpass'],$INSTALL['dbname'])) { /// The following doesn't seem to work but we're working on it /// If you come up with a solution for creating a database in MySQL /// feel free to put it in and let us know @@ -595,7 +595,7 @@ function print_install_help($help) { print_string($help, 'install', phpversion()); break; case 'memorylimithelp': - print_string($help, 'install', ini_get('memory_limit')); + print_string($help, 'install', get_memory_limit()); break; default: print_string($help, 'install'); diff --git a/lang/en/install.php b/lang/en/install.php index 2d9504c154..e29d4d80d5 100755 --- a/lang/en/install.php +++ b/lang/en/install.php @@ -10,7 +10,7 @@ $string['admindirsetting'] = " new name here. For example:
 
moodleadmin
 
This will fix admin links in Moodle."; $string['chooselanguage'] = 'Choose a language'; -$string['compatibilitysettings'] = 'The following is a check on the compatibility of the server to run Moodle'; +$string['compatibilitysettings'] = 'Checking your PHP settings ...'; $string['configfilenotwritten'] = "The installer script was not able to automatically create a config.php file containing your chosen settings. Please copy the following code into a file named config.php within the root directory of Moodle."; $string['configfilewritten'] = "config.php has been successfully created"; $string['configurationcomplete'] = 'Configuration completed'; @@ -61,8 +61,8 @@ $string['gdversionerror'] = 'The GD library should be present to process and cre $string['gdversionhelp'] = 'The GD library should be present to process and create images'; $string['installation'] = 'Installation'; $string['memorylimit'] = 'Memory Limit'; -$string['memorylimiterror'] = 'The memory limit needs to be set to 16M or more or be changeable'; -$string['memorylimithelp'] = "The memory limit needs to be set to 16M or more or be changeable. Your current memory limit is set to \$a"; +$string['memorylimiterror'] = 'The PHP memory limit setting needs to be set to at least 16M, or be changeable'; +$string['memorylimithelp'] = "The memory limit needs to be set to at least 16M, or be changeable. Your current memory limit is set to \$a.

You can change your memory limit in your php.ini file, or sometimes by creating a .htaccess file in the Moodle directory containing this line:

"; $string['pass'] = 'Pass'; $string['PHPversion'] = 'PHP version'; $string['PHPversionerror'] = 'PHP version must be at least 4.1.0';