mirror of
https://github.com/moodle/moodle.git
synced 2025-07-25 16:21:47 +02:00
mnet: Replace hardcoded strings: MDL-8069
This commit is contained in:
@@ -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.
|
||||
|
@@ -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') ) {
|
||||
|
@@ -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.
|
||||
|
@@ -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') ) {
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user