MDL-81182 factor_email: Correct path for config.php require

Without this, the path is incorrect and can, in some circumstances (if
config.php is a symlink for one) - result in PHP requiring the config
file twice.
This commit is contained in:
Adam Olley
2024-03-10 00:35:02 +10:30
parent fde6c3c7ef
commit 639dceb19b
+1 -1
View File
@@ -24,7 +24,7 @@
*/
// Ignore coding standards for login check, this page does not require login.
// @codingStandardsIgnoreStart
require_once(__DIR__ . '../../../../../../config.php');
require_once(__DIR__ . '/../../../../../config.php');
$instanceid = required_param('instance', PARAM_INT);
$pass = optional_param('pass', '0', PARAM_INT);
$secret = optional_param('secret', 0, PARAM_INT);