MDL-16508

Changed deprecated error() calls to print_error()
This commit is contained in:
thepurpleblob
2008-09-15 14:21:02 +00:00
parent e118ad4709
commit c43541599b
2 changed files with 6 additions and 7 deletions
+3 -3
View File
@@ -93,15 +93,15 @@
$qformat->setContexttofile(!empty($from_form->contexttofile));
if (! $qformat->exportpreprocess()) { // Do anything before that we need to
error(get_string('exporterror', 'quiz'), $thispageurl->out());
print_error('exporterror', 'quiz', $thispageurl->out());
}
if (! $qformat->exportprocess()) { // Process the export data
error(get_string('exporterror', 'quiz'), $thispageurl->out());
print_error('exporterror', 'quiz', $thispageurl->out());
}
if (! $qformat->exportpostprocess()) { // In case anything needs to be done after
error(get_string('exporterror', 'quiz'), $thispageurl->out());
print_error('exporterror', 'quiz', $thispageurl->out());
}
echo "<hr />";
+3 -4
View File
@@ -19,7 +19,6 @@
// get display strings
$txt = new stdClass();
$txt->importerror = get_string('importerror','quiz');
$txt->importquestions = get_string("importquestions", "quiz");
list($catid, $catcontext) = explode(',', $pagevars['cat']);
@@ -134,17 +133,17 @@
// Do anything before that we need to
if (! $qformat->importpreprocess()) {
error($txt->importerror, $thispageurl->out());
print_error('importerror', 'quiz', $thispageurl->out());
}
// Process the uploaded file
if (! $qformat->importprocess()) {
error($txt->importerror, $thispageurl->out());
print_error('importerror', 'quiz', $thispageurl->out());
}
// In case anything needs to be done after
if (! $qformat->importpostprocess()) {
error($txt->importerror, $thispageurl->out());
print_error('importerror', 'quiz', $thispageurl->out());
}
echo "<hr />";