From aad6739758575aab0b637a68b2d99fcc43b35ca0 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Fri, 13 Jun 2008 06:41:36 +0000 Subject: [PATCH] "MDL-14129, fix print_error" --- lang/en_utf8/error.php | 1 + tag/user.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/en_utf8/error.php b/lang/en_utf8/error.php index c1f460d8f1..87e10cd088 100644 --- a/lang/en_utf8/error.php +++ b/lang/en_utf8/error.php @@ -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'; diff --git a/tag/user.php b/tag/user.php index 7259e0e654..df1722f480 100644 --- a/tag/user.php +++ b/tag/user.php @@ -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; } -- 2.39.5