MDL-83332 core: Revert the slashargument removal on MDL-62640

Removing the option causes issues on MacOS.
This commit is contained in:
meirzamoodle
2024-10-02 18:36:14 +07:00
parent 0eacab846e
commit 3229dda3d6
38 changed files with 833 additions and 549 deletions
-27
View File
@@ -785,30 +785,3 @@ 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;
}