From 9cad3e182d76372eddf968fd065cec7f8dc02931 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 28 Dec 2011 19:36:23 +0100 Subject: [PATCH] MDL-30943 fix forgotten admin/report/ references --- admin/qtypes.php | 2 +- backup/log.php | 2 +- backup/util/helper/backup_cron_helper.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/qtypes.php b/admin/qtypes.php index 4922ad5b01c..79bcf683afc 100644 --- a/admin/qtypes.php +++ b/admin/qtypes.php @@ -217,7 +217,7 @@ foreach ($sortedqtypes as $qtypename => $localname) { $strcount = $counts[$qtypename]->numquestions; } if ($canviewreports) { - $row[] = html_writer::link(new moodle_url('/admin/report/questioninstances/index.php', + $row[] = html_writer::link(new moodle_url('/report/questioninstances/index.php', array('qtype' => $qtypename)), $strcount, array('title' => get_string('showdetails', 'admin'))); } else { $strcount; diff --git a/backup/log.php b/backup/log.php index 3f83de6bb9a..470bbb5376c 100644 --- a/backup/log.php +++ b/backup/log.php @@ -8,4 +8,4 @@ require_capability('moodle/backup:backupcourse', get_context_instance(CONTEXT_SYSTEM)); - redirect("$CFG->wwwroot/$CFG->admin/report/backups/index.php", '', 'admin', 1); + redirect("$CFG->wwwroot/report/backups/index.php", '', 'admin', 1); diff --git a/backup/util/helper/backup_cron_helper.class.php b/backup/util/helper/backup_cron_helper.class.php index 8077771218f..8631be6488d 100644 --- a/backup/util/helper/backup_cron_helper.class.php +++ b/backup/util/helper/backup_cron_helper.class.php @@ -195,7 +195,7 @@ abstract class backup_cron_automated_helper { //Reference if ($haserrors) { $message .= " ".get_string('backupfailed')."\n\n"; - $dest_url = "$CFG->wwwroot/$CFG->admin/report/backups/index.php"; + $dest_url = "$CFG->wwwroot/report/backups/index.php"; $message .= " ".get_string('backuptakealook','',$dest_url)."\n\n"; //Set message priority $admin->priority = 1; -- 2.11.4.GIT