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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user