Skip to content

Commit d32bddc

Browse files
author
Nicolas Roeser
committed
Change way of config.php inclusion
Moodle coding style <https://docs.moodle.org/dev/Coding_style#Require_.2F_include> stipulates that you require (instead of require_once) config.php.
1 parent fb30cf1 commit d32bddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resetprogress.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
2525

26-
require_once(dirname(__FILE__) . '/../../../config.php');
26+
require(dirname(__FILE__) . '/../../../config.php');
2727
require_once($CFG->dirroot .'/admin/tool/crawler/lib.php');
2828
require_once($CFG->libdir . '/adminlib.php');
2929

0 commit comments

Comments
 (0)