"MDL-14129, fix print_error"

This commit is contained in:
dongsheng 2008-06-13 06:41:36 +00:00
parent 0430fc37d7
commit aad6739758
2 changed files with 3 additions and 2 deletions

View File

@ -332,6 +332,7 @@ $string['socksnotsupported'] = 'SOCKS5 proxy is not supported in PHP4';
$string['spellcheckernotconf'] = 'Spellchecker not configured';
$string['statscatchupmode'] = 'Statistics is currently in catchup mode. So far $a->daysdone day(s) have been processed and $a->dayspending are pending. Check back soon!';
$string['tagnotfound'] = 'The specified tag was not found in the database';
$string['tagdisabled'] = 'Tags are disabled!';
$string['transactionvoid'] = 'Transaction can not be voided because of already been voided.';
$string['unicodeupgradeerror'] = 'Sorry, but your database is not already in Unicode, and this version of Moodle is not able to migrate your database to Unicode. Please upgrade to Moodle 1.7.x first and perform the Unicode migration from the Admin page. After that is done you should be able to migrate to Moodle $a';
$string['unspecifycourseid'] = 'Must specify course id, short name or idnumber';

View File

@ -10,7 +10,7 @@ $tag = optional_param('tag', '', PARAM_TAG);
require_login();
if (empty($CFG->usetags)) {
print_error('Tags are disabled!');
print_error('tagdisabled');
}
if (isguestuser()) {
@ -51,7 +51,7 @@ switch ($action) {
break;
default:
print_error('No action was specified');
print_error('unknowaction');
break;
}