Commit b42f2bd1 authored by Aaron Wells's avatar Aaron Wells
Browse files

The redirect URL on the bulk export page should be absolute

Bug 1446426. Relative URLs don't work if your Mahara wwwroot
is a subdirectory, e.g. http://example.com/mahara

Change-Id: Idfbb4c1a81191a41c25fc816eec784cd14df7637
parent 5cdd1f45
......@@ -179,7 +179,7 @@ function bulkexport_submit(Pieform $form, $values) {
// but alas this is not possible for people without javascript.
$SESSION->set('exportfile', $zipfile);
set_progress_done('bulkexport', array('redirect' => '/admin/users/bulkexport.php'));
set_progress_done('bulkexport', array('redirect' => get_config('wwwroot') . 'admin/users/bulkexport.php'));
// Download the export file once it has been generated
require_once('file.php');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment