diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-25 09:14:18 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-25 09:19:05 +0100 |
commit | a3d5dfe86e51c71a7b29776f48e107ccd6fabb31 (patch) | |
tree | eaf46b6abe318d3fa1602a066e06c86708dff0b5 /sqlbox/reportall.php | |
parent | 3b907b85a51d489a6a752da80aaddcd854d9e878 (diff) | |
download | sqltutor-plugin-a3d5dfe86e51c71a7b29776f48e107ccd6fabb31.tar.gz sqltutor-plugin-a3d5dfe86e51c71a7b29776f48e107ccd6fabb31.tar.bz2 sqltutor-plugin-a3d5dfe86e51c71a7b29776f48e107ccd6fabb31.zip |
Replace all deprecated error() calls with print_error
Diffstat (limited to 'sqlbox/reportall.php')
-rw-r--r-- | sqlbox/reportall.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |