mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14905 towards functional DB tests
This commit is contained in:
parent
dfba1c3da1
commit
e6b4f00ed7
7 changed files with 200 additions and 86 deletions
|
@ -439,7 +439,6 @@ function get_current_group($courseid, $full = false) {
|
|||
function error($message, $link='') {
|
||||
|
||||
global $CFG, $SESSION, $THEME;
|
||||
debugging('error() is a deprecated function, please call print_error() instead of error()', DEBUG_DEVELOPER);
|
||||
$message = clean_text($message); // In case nasties are in here
|
||||
|
||||
/**
|
||||
|
@ -451,6 +450,8 @@ function error($message, $link='') {
|
|||
throw new Exception('error() call: '. $message.($link!=='' ? ' ['.$link.']' : ''));
|
||||
}
|
||||
|
||||
debugging('error() is a deprecated function, please call print_error() instead of error()', DEBUG_DEVELOPER);
|
||||
|
||||
if (defined('FULLME') && FULLME == 'cron') {
|
||||
// Errors in cron should be mtrace'd.
|
||||
mtrace($message);
|
||||
|
@ -767,4 +768,8 @@ function get_field($table, $return, $field1, $value1, $field2='', $value2='', $f
|
|||
error('get_field() not available anymore');
|
||||
}
|
||||
|
||||
function table_column($table, $oldfield, $field, $type='integer', $size='10',
|
||||
$signed='unsigned', $default='0', $null='not null', $after='') {
|
||||
error('table_column() was removed, please use new ddl functions');
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue