Permalink
Browse files

Fix for enrolurl(admin/users.php). Merged from 17stable.

  • Loading branch information...
1 parent b82fcee commit e40106c7db6476a85d6d2fd523bb7b3f312bdcaf ethem committed Nov 2, 2006
Showing with 3 additions and 3 deletions.
  1. +3 −3 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>';
@@ -231,7 +231,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);
@@ -726,7 +726,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 e40106c

Please sign in to comment.