Skip to content

Commit b5407ce

Browse files
committed
Use __DIR__ instead of $CFG->dirroot
1 parent c20147d commit b5407ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locallib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
use tool_crawler\local\url;
26-
require_once($CFG->dirroot . '/admin/tool/crawler/constants.php');
26+
require_once(__DIR__ . '/constants.php');
2727

2828
/**
2929
* Renders a link as HTML.

0 commit comments

Comments
 (0)