]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-14129, fix print_error"
authordongsheng <dongsheng>
Fri, 13 Jun 2008 06:41:36 +0000 (06:41 +0000)
committerdongsheng <dongsheng>
Fri, 13 Jun 2008 06:41:36 +0000 (06:41 +0000)
lang/en_utf8/error.php
tag/user.php

index c1f460d8f1fe325e3503a417e9028a6d501d18bd..87e10cd088c39385e73caa792a4781c8697343c7 100644 (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';
index 7259e0e654f56e1cf5673593b7f863249ddc0c4d..df1722f48092cb8f6b0a9b82f2f94bbc9b646e2b 100644 (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;
 }