diff --git a/enrol/authorize/config.html b/enrol/authorize/config.html
index 80445ef22c9..7bf1120079c 100755
--- a/enrol/authorize/config.html
+++ b/enrol/authorize/config.html
@@ -12,7 +12,7 @@ if (!isset($frm->an_password)) $frm->an_password = '';
if (!isset($frm->an_referer)) $frm->an_referer = 'http://';
if (!isset($frm->an_test)) $frm->an_test = '';
if (!isset($frm->an_review)) $frm->an_review = '';
-if (!isset($frm->an_review_day)) $frm->an_review_day = '5';
+if (!isset($frm->an_capture_day)) $frm->an_capture_day = '5';
if (!isset($frm->an_cutoff_hour)) $frm->an_cutoff_hour = '0';
if (!isset($frm->an_cutoff_min)) $frm->an_cutoff_min = '5';
@@ -85,14 +85,16 @@ if (!isset($frm->an_cutoff_min)) $frm->an_cutoff_min = '5';
| an_review: |
- an_review)) echo "checked=\"true\"" ?> /> |
+ an_review)) echo "checked=\"true\"" ?> />
+ |
|
- | an_review_day: |
- |
- an_review_day) ?> |
+ an_capture_day: |
+
+ |
+ an_capture_day) ?> |
diff --git a/enrol/authorize/db/mysql.php b/enrol/authorize/db/mysql.php
index 0027fa8b0da..a694afc450e 100755
--- a/enrol/authorize/db/mysql.php
+++ b/enrol/authorize/db/mysql.php
@@ -84,6 +84,13 @@ function authorize_upgrade($oldversion=0) {
execute_sql("ALTER TABLE {$CFG->prefix}enrol_authorize DROP authcode", false);
}
+ if ($oldversion < 2006010200) {
+ if (isset($CFG->an_review_day)) { // rename an_review_day
+ set_config('an_capture_day', $CFG->an_review_day);
+ delete_records('config', 'name', 'an_review_day');
+ }
+ }
+
return $result;
}
diff --git a/enrol/authorize/db/postgres7.php b/enrol/authorize/db/postgres7.php
index 232a5e3fb5b..06174555836 100644
--- a/enrol/authorize/db/postgres7.php
+++ b/enrol/authorize/db/postgres7.php
@@ -83,6 +83,13 @@ function authorize_upgrade($oldversion=0) {
execute_sql("ALTER TABLE {$CFG->prefix}enrol_authorize DROP authcode", false);
}
+ if ($oldversion < 2006010200) {
+ if (isset($CFG->an_review_day)) { // rename an_review_day
+ set_config('an_capture_day', $CFG->an_review_day);
+ delete_records('config', 'name', 'an_review_day');
+ }
+ }
+
return $result;
}
diff --git a/enrol/authorize/enrol.html b/enrol/authorize/enrol.html
index b05b86e37a5..c6dae9a7537 100755
--- a/enrol/authorize/enrol.html
+++ b/enrol/authorize/enrol.html
@@ -9,15 +9,15 @@