Permalink
Browse files

Fix for enrolurl(admin/users.php).

  • Loading branch information...
1 parent 4a373db commit f319b5bf618591f0322ba43786a993f96996de09 ethem committed Nov 2, 2006
Showing with 3 additions and 3 deletions.
  1. +3 −3 enrol/authorize/enrol.php
View
6 enrol/authorize/enrol.php
@@ -70,7 +70,7 @@ function print_entry($course) {
}
print_simple_box_start('center');
- if (has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM, SITEID), $USER->id, false)) {
+ if (has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM), $USER->id, false)) {
$curcost = get_course_cost($course);
echo '<div align="center">';
echo '<p>'.get_string('paymentrequired').'</p>';
@@ -221,7 +221,7 @@ function cc_submit($form, $course)
$a->course = $course->shortname;
$a->orderid = $order->id;
$emailsubject = get_string('adminnewordersubject', 'enrol_authorize', $a);
- $context = get_context_instance(CONTEXT_SYSTEM, SITEID);
+ $context = get_context_instance(CONTEXT_SYSTEM);
if ($sitepaymentmanagers = get_users_by_capability($context, 'enrol/authorize:managepayments')) {
foreach ($sitepaymentmanagers as $sitepaymentmanager) {
email_to_user($sitepaymentmanager, $USER, $emailsubject, $emailmessage);
@@ -715,7 +715,7 @@ function cron_daily()
$a->pending = $count;
$a->days = $CFG->an_emailexpired;
$a->course = $SITE->fullname;
- $a->enrolurl = "$CFG->wwwroot/$CFG->admin/users.php";
+ $a->enrolurl = "$CFG->wwwroot/$CFG->admin/enrol_config.php?enrol=authorize";
$a->url = $CFG->wwwroot.'/enrol/authorize/index.php?status='.AN_STATUS_AUTH;
$message = get_string('pendingordersemail', 'enrol_authorize', $a);
$adminuser = get_admin();

0 comments on commit f319b5b

Please sign in to comment.