mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
mnet: Replace hardcoded strings: MDL-8069
This commit is contained in:
parent
7d542ec91d
commit
5a3be3847e
5 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue