From a3d5dfe86e51c71a7b29776f48e107ccd6fabb31 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 25 Jan 2013 09:14:18 +0100 Subject: Replace all deprecated error() calls with print_error --- sqlbox/reportall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlbox/reportall.php') diff --git a/sqlbox/reportall.php b/sqlbox/reportall.php index 659da9c..b11a422 100644 --- a/sqlbox/reportall.php +++ b/sqlbox/reportall.php @@ -10,7 +10,7 @@ if ($id) { $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); $sqlbox = $DB->get_record('sqlbox', array('id' => $cm->instance), '*', MUST_EXIST); } else { - error('You must specify a course_module ID or an instance ID'); + print_error('invalidcourse'); } require_login($course, true, $cm); -- cgit