mnet: Replace hardcoded strings: MDL-8069

This commit is contained in:
donal72
2007-01-10 23:15:53 +00:00
parent 7d542ec91d
commit 5a3be3847e
5 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
if (!$site = get_site()) {
error(get_string('nosite','mnet'));
print_error('nosite', '', '', NULL, true);
}
/// Initialize variables.

View File

@@ -24,7 +24,7 @@
if (!$site = get_site()) {
admin_externalpage_print_header($adminroot);
set_config('mnet_dispatcher_mode', 'off');
print_error('nosite', 'mnet', '', NULL, true);
print_error('nosite', '', '', NULL, true);
}
if (!function_exists('curl_init') ) {

View File

@@ -14,7 +14,7 @@
require_capability('moodle/site:config', $context, $USER->id, true, "nopermissions");
if (!$site = get_site()) {
error(get_string('nosite','mnet'));
print_error('nosite', '', '', NULL, true);
}
/// Initialize variables.

View File

@@ -21,7 +21,7 @@ if (!extension_loaded('openssl')) {
if (!$site = get_site()) {
admin_externalpage_print_header($adminroot);
print_error('nosite', 'mnet', '', NULL, true);
print_error('nosite', '', '', NULL, true);
}
if (!function_exists('curl_init') ) {

View File

@@ -20,7 +20,7 @@
if (!$site = get_site()) {
admin_externalpage_print_header($adminroot);
print_error('nosite', 'mnet', '', NULL, true);
print_error('nosite', '', '', NULL, true);
}
$trusted_hosts = '';//array();