Added $CFG->pagepath for Moodle Docs.
This commit is contained in:
+2
-1
@@ -5,7 +5,8 @@
|
||||
include('../config.php');
|
||||
|
||||
$enrol = optional_param('enrol', $CFG->enrol, PARAM_SAFEDIR);
|
||||
|
||||
$CFG->pagepath = 'enrol';
|
||||
|
||||
require_login();
|
||||
|
||||
if (!$site = get_site()) {
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
include("../config.php");
|
||||
|
||||
$enrol = required_param('enrol', PARAM_ALPHA);
|
||||
|
||||
$CFG->pagepath = 'enrol/' . $enrol;
|
||||
|
||||
require_login();
|
||||
|
||||
if (!$site = get_site()) {
|
||||
|
||||
Reference in New Issue
Block a user