MDL-14129, fix print_error() calls

This commit is contained in:
dongsheng
2008-04-11 08:13:08 +00:00
parent 6967cb2d42
commit 9c78aeca2b
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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);