mirror of
https://github.com/moodle/moodle.git
synced 2025-04-11 19:42:35 +02:00
MDL-81182 factor_sms: 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:
parent
6f81cfd479
commit
5e87af8396
@ -22,7 +22,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
require_once(__DIR__ . '../../../../../../config.php');
|
||||
require_once(__DIR__ . '/../../../../../config.php');
|
||||
|
||||
require_login(null, false);
|
||||
if (isguestuser()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user