From 9c78aeca2beb2eac83786c4a4479d1d5bc58d722 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Fri, 11 Apr 2008 08:13:08 +0000 Subject: [PATCH] MDL-14129, fix print_error() calls --- admin/blocks.php | 4 ++-- admin/cliupgrade.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/blocks.php b/admin/blocks.php index d585b9f977..dcbda49466 100644 --- a/admin/blocks.php +++ b/admin/blocks.php @@ -123,7 +123,7 @@ /// Get and sort the existing blocks if (false === ($blocks = get_records('block'))) { - print_error('No blocks found!'); // Should never happen + print_error('noblocks', 'error'); // Should never happen } $incompatible = array(); @@ -143,7 +143,7 @@ } if(empty($blockbyname)) { - print_error('One or more blocks are registered in the database, but they all failed to load!'); + print_error('failtoloadblocks', 'error'); } ksort($blockbyname); diff --git a/admin/cliupgrade.php b/admin/cliupgrade.php index c5035da6b3..b2189cecce 100644 --- a/admin/cliupgrade.php +++ b/admin/cliupgrade.php @@ -1234,10 +1234,10 @@ if ( file_exists(dirname(dirname(__FILE__)) . '/config.php')) { mark_context_dirty('/'.SYSCONTEXTID); // do nothing } else { - print_error("Serious Error! Could not set up a default course category!"); + print_error('cannotsetupcategory', 'error'); } } else { - print_error("Serious Error! Could not set up the site!"); + print_error('cannotsetupsite', 'error'); } } -- 2.39.5