diff -Nur -x '*.orig' -x '*.rej' smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/20db mezzanine_patched_smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/20db --- smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/20db 2007-07-06 08:32:40.000000000 -0600 +++ mezzanine_patched_smeserver-moodle-1.0/root/etc/e-smith/templates/opt/moodle/html/config.php/20db 2007-09-01 19:17:24.000000000 -0600 @@ -1,7 +1,9 @@ // SME Server Settings { - my $wwwroot = "http://$moodle{domain}" || "http://$DomainName/moodle"; + my $wwwroot = "http://$DomainName/moodle"; + if ($moodle{domain}) + { $wwwroot = "http://$moodle{domain}"; } $OUT .= "\$CFG->dbname = \'$moodle{DbName}\'\; \n"; $OUT .= "\$CFG->dbuser = \'$moodle{DbUser}\'\; \n";