From: dongsheng Date: Thu, 24 Jul 2008 04:59:29 +0000 (+0000) Subject: MDL-14129, remove 2 error()s in course and blog module X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9afff849e193f344f5a279c75da2c6f4b0d1704e;p=moodle.git MDL-14129, remove 2 error()s in course and blog module --- diff --git a/blog/index.php b/blog/index.php index da23b2feaa..565d1ca899 100755 --- a/blog/index.php +++ b/blog/index.php @@ -43,7 +43,7 @@ if (empty($filtertype)) { if ($postid) { $filtertype = 'user'; if (!$postobject = $DB->get_record('post', array('module'=>'blog', 'id'=>$postid))) { - error('No such blog entry'); + print_error('nosuchentry', 'blog'); } $filterselect = $postobject->userid; } else { diff --git a/course/import/groups/index.php b/course/import/groups/index.php index 732052c94c..b8f1ac2ce7 100755 --- a/course/import/groups/index.php +++ b/course/import/groups/index.php @@ -121,11 +121,7 @@ foreach ($record as $name => $value) { // check for required values if (isset($required[$name]) and !$value) { - error(get_string('missingfield', 'error', $name). " ". - get_string('erroronline', 'error', $linenum) .". ". - get_string('processingstops', 'error'), - 'uploaduser.php?sesskey='.$USER->sesskey); - //print_error('missingfield', 'error', 'uploaduser.php?sesskey='.$USER->sesskey, $name); + print_error('missingfield', 'error', 'uploaduser.php?sesskey='.$USER->sesskey, $name); } else if ($name == "groupname") { $newgroup->name = $value; diff --git a/lang/en_utf8/blog.php b/lang/en_utf8/blog.php index 2e2d30154d..1e4cdc0278 100755 --- a/lang/en_utf8/blog.php +++ b/lang/en_utf8/blog.php @@ -38,6 +38,7 @@ $string['groupblogs'] = 'Users can only see blogs for people who share a group'; $string['intro'] = 'This RSS feed was automatically generated from one or more blogs.'; $string['incorrectblogfilter'] = 'Incorrect blog filter type specified'; $string['noentriesyet'] = 'No visible entries here'; +$string['nosuchentry'] = 'No such blog entry'; $string['noguestpost'] = 'Guest can not post blogs!'; $string['norighttodeletetag'] = 'You have no rights to delete this tag - $a'; $string['notallowedtoedit'] = 'You are not allowed to edit this entry';