MDL-62640 environment: Remove the deprecated slash argument check

This commit is contained in:
meirzamoodle
2024-09-25 08:30:18 +07:00
parent 979db77a63
commit 04246c8aec
6 changed files with 36 additions and 24 deletions
+27
View File
@@ -785,3 +785,30 @@ function plagiarism_get_file_results(): void {
function plagiarism_update_status(): void {
\core\deprecation::emit_deprecation_if_present(__FUNCTION__);
}
/**
* Method used to check the usage of slasharguments config and display a warning message.
*
* @param environment_results $result object to update, if relevant.
* @return environment_results|null updated results or null if slasharguments is disabled.
*
* @deprecated Since Moodle 4.5
* @todo Final deprecation on Moodle 6.0. See MDL-82768.
*/
#[\core\attribute\deprecated(
since: '4.5',
mdl: 'MDL-62640',
reason: 'Removed the option to disable slash arguments (slashargs)',
)]
function check_slasharguments(environment_results $result) {
\core\deprecation::emit_deprecation_if_present(__FUNCTION__);
global $CFG;
if (!during_initial_install() && empty($CFG->slasharguments)) {
$result->setInfo('slasharguments');
$result->setStatus(false);
return $result;
}
return null;
}