Skip to content
Browse files

Default values must be default values. :)

  • Loading branch information...
1 parent 07af257 commit a56d86dd3d96722adad9971844c8d92fe077712b ethem committed Dec 3, 2005
Showing with 18 additions and 9 deletions.
  1. +18 −0 enrol/authorize/config.html
  2. +0 −9 enrol/authorize/enrol.php
View
18 enrol/authorize/config.html
@@ -1,3 +1,21 @@
+<?php // $Id$
+
+optional_variable($frm->enrol_cost, '5');
+optional_variable($frm->enrol_currency, 'USD');
+optional_variable($frm->enrol_mailstudents, false);
+optional_variable($frm->enrol_mailteachers, false);
+optional_variable($frm->enrol_mailadmins, false);
+
+optional_variable($frm->an_login, '');
+optional_variable($frm->an_tran_key, '');
+optional_variable($frm->an_password, '');
+optional_variable($frm->an_referer, 'http://');
+optional_variable($frm->an_test, false);
+optional_variable($frm->an_review, false);
+optional_variable($frm->an_review_day, 5);
+
+?>
+
<table cellspacing="0" cellpadding="5" border="0" align="center">
<tr valign="top"><td colspan="3"><h4><?php print_string("adminauthorizewide", "enrol_authorize") ?></h4></td></tr>
View
9 enrol/authorize/enrol.php
@@ -388,15 +388,6 @@ function get_access_icons($course) {
function config_form($frm) {
global $CFG;
- $vars = array('an_login', 'an_tran_key', 'an_password', 'an_referer', 'an_test', 'an_review', 'an_review_day',
- 'enrol_cost', 'enrol_currency', 'enrol_mailstudents', 'enrol_mailteachers', 'enrol_mailadmins');
-
- foreach ($vars as $var) {
- if (!isset($frm->$var)) {
- $frm->$var = '';
- }
- }
-
if (!$this->check_openssl_loaded()) {
notify('PHP must be compiled with SSL support (--with-openssl)');
}

0 comments on commit a56d86d

Please sign in to comment.
Something went wrong with that request. Please try again.