Skip to content

Commit

Permalink
MDL-62270 Privacy: Cron task fails when admin directory renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtppaw committed Jun 3, 2018
1 parent 5b4ca9e commit c6363e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class initiate_data_request_task extends adhoc_task {
public function execute() {
global $CFG;

require_once($CFG->dirroot . '/admin/tool/dataprivacy/lib.php');
require_once($CFG->dirroot . "/{$CFG->admin}/tool/dataprivacy/lib.php");

if (!isset($this->get_custom_data()->requestid)) {
throw new coding_exception('The custom data \'requestid\' is required.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class process_data_request_task extends adhoc_task {
public function execute() {
global $CFG, $PAGE, $SITE;

require_once($CFG->dirroot . '/admin/tool/dataprivacy/lib.php');
require_once($CFG->dirroot . "/{$CFG->admin}/tool/dataprivacy/lib.php");

if (!isset($this->get_custom_data()->requestid)) {
throw new coding_exception('The custom data \'requestid\' is required.');
Expand Down

0 comments on commit c6363e8

Please sign in to comment.