Skip to content

Commit cbf2872

Browse files
author
Nicolas Roeser
committed
Clean up includes in user-facing URL page
Require locallib.php as per Moodle developer documentation <https://docs.moodle.org/dev/Coding_style#Require_.2F_include>. Remove requiring of adminlib, as there is no need for it.
1 parent 0042c58 commit cbf2872

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

url.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
2424
require(dirname(dirname(dirname(dirname(__FILE__)))).'/config.php');
25-
require_once($CFG->libdir . '/adminlib.php');
26-
require_once('locallib.php');
25+
require_once(__DIR__ . '/locallib.php');
2726

2827
$url = required_param('url', PARAM_RAW);
2928
echo tool_crawler_url_create_page($url);

0 commit comments

Comments
 (0)