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 {
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;
$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';