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:
Adam Olley 2024-03-10 01:04:51 +10:30
parent 6f81cfd479
commit 5e87af8396

View File

@ -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()) {