Skip to content

Commit

Permalink
MDL-14129, fix print_error() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Apr 11, 2008
1 parent 6967cb2 commit 9c78aec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/blocks.php
Expand Up @@ -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();
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions admin/cliupgrade.php
Expand Up @@ -1234,10 +1234,10 @@
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');
}
}

Expand Down

0 comments on commit 9c78aec

Please sign in to comment.