MDL-83332 core: Revert the slashargument removal on MDL-62640
Removing the option causes issues on MacOS.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user