mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
"MDL-14129, fix print_error"
This commit is contained in:
parent
6db04f1124
commit
e6edb40e7a
@ -11,6 +11,7 @@ $string['cannotupgradecapabilities'] = 'Had trouble upgrading the core capabilit
|
||||
$string['cannotupdateversion'] = 'Upgrade failed! (Could not update version in config table)';
|
||||
$string['cannotupdaterelease'] = 'ERROR: Could not update release version in database!!';
|
||||
$string['cannotsetupsite'] = 'Serious Error! Could not set up the site!';
|
||||
$string['cannotsetuptable'] = '$a tables could NOT be set up successfully!';
|
||||
$string['cannotfindadmin'] = 'Could not find an admin user!';
|
||||
$string['cannotupgradedbcustom'] = 'Upgrade of local database customisations failed! (Could not update version in config table)';
|
||||
$string['configmoodle'] = 'Moodle has not been configured yet. You need to edit config.php first.';
|
||||
|
@ -18,6 +18,7 @@ $string['cannotaddcoursemodule'] = 'Could not add a new course module';
|
||||
$string['cannotaddcoursemoduletosection'] = 'Could not add the new course module to that section';
|
||||
$string['cannotaddcmtosection'] = 'Could not add the new course module to that section';
|
||||
$string['cannotaddrss'] = 'You do not have permission to add rss feeds';
|
||||
$string['cannotaddmodule'] = '$a module could not be added to the module list!';
|
||||
$string['cannotaddnewmodule'] = 'Could not add a new module of $a';
|
||||
$string['cannotaddnewinstance'] = 'Could not add a new instance of $a';
|
||||
$string['cannotsaveconfig'] = 'Problem saving config \"$a[0]\" as \"$a[1]\" for plugin \"$a[2]\"';
|
||||
|
@ -880,7 +880,7 @@ function require_capability($capability, $context, $userid=NULL, $doanything=tru
|
||||
|
||||
if (!has_capability($capability, $context, $userid, $doanything)) {
|
||||
$capabilityname = get_capability_string($capability);
|
||||
print_error($errormessage, $stringfile, $errorlink, $capabilityname);
|
||||
print_error('nopermissions', '', $errorlink, $capabilityname);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -558,10 +558,10 @@ function upgrade_activity_modules($return) {
|
||||
echo '<hr />';
|
||||
}
|
||||
} else {
|
||||
print_error($module->name .' module could not be added to the module list!');
|
||||
print_error('cannotaddmodule', '', '', $module->name);
|
||||
}
|
||||
} else {
|
||||
print_error($module->name .' tables could NOT be set up successfully!');
|
||||
print_error('cannotsetuptable', 'debug', '', $module->name);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user