mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-44260 uplodate: move deprecated functions to deprecatedlib
This commit is contained in:
parent
65a19504d7
commit
7293a1aafd
@ -95,6 +95,28 @@ function clam_replace_infected_file($file) {
|
||||
throw new coding_exception('clam_replace_infected_file() can not be used any more, please use file picker instead');
|
||||
}
|
||||
|
||||
/**
|
||||
* Deals with an infected file - either moves it to a quarantinedir
|
||||
* (specified in CFG->quarantinedir) or deletes it.
|
||||
*
|
||||
* If moving it fails, it deletes it.
|
||||
*
|
||||
* @deprecated since 2.7
|
||||
*/
|
||||
function clam_handle_infected_file($file, $userid=0, $basiconly=false) {
|
||||
throw new coding_exception('clam_handle_infected_file() can not be used any more, please use file picker instead');
|
||||
}
|
||||
|
||||
/**
|
||||
* If $CFG->runclamonupload is set, we scan a given file. (called from {@link preprocess_files()})
|
||||
*
|
||||
* @deprecated since 2.7
|
||||
*/
|
||||
function clam_scan_moodle_file(&$file, $course) {
|
||||
throw new coding_exception('clam_scan_moodle_file() can not be used any more, please use file picker instead');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks whether the password compatibility library will work with the current
|
||||
* version of PHP. This cannot be done using PHP version numbers since the fix
|
||||
|
@ -56,29 +56,6 @@ FOR EXAMPLE CLAM_HANDLE_INFECTED_FILE AND CLAM_REPLACE_INFECTED_FILE USED FROM C
|
||||
UPLOAD_PRINT_FORM_FRAGMENT DOESN'T REALLY BELONG IN THE CLASS BUT CERTAINLY IN THIS FILE
|
||||
***************************************************************************************/
|
||||
|
||||
/**
|
||||
* Deals with an infected file - either moves it to a quarantinedir
|
||||
* (specified in CFG->quarantinedir) or deletes it.
|
||||
*
|
||||
* If moving it fails, it deletes it.
|
||||
*
|
||||
* @deprecated since 2.7 - to be removed together with the upload_manager above
|
||||
*
|
||||
*/
|
||||
function clam_handle_infected_file($file, $userid=0, $basiconly=false) {
|
||||
throw new coding_exception('clam_handle_infected_file() can not be used any more, please use file picker instead');
|
||||
}
|
||||
|
||||
/**
|
||||
* If $CFG->runclamonupload is set, we scan a given file. (called from {@link preprocess_files()})
|
||||
*
|
||||
* @deprecated since 2.7 - to be removed together with the upload_manager above
|
||||
*
|
||||
*/
|
||||
function clam_scan_moodle_file(&$file, $course) {
|
||||
throw new coding_exception('clam_scan_moodle_file() can not be used any more, please use file picker instead');
|
||||
}
|
||||
|
||||
/**
|
||||
* Emails admins about a clam outcome
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user