Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Default values must be default values. :)

  • Loading branch information...
commit a56d86dd3d96722adad9971844c8d92fe077712b 1 parent 07af257
ethem authored

Showing 2 changed files with 18 additions and 9 deletions. Show diff stats Hide diff stats

  1. +18 0 enrol/authorize/config.html
  2. +0 9 enrol/authorize/enrol.php
18 enrol/authorize/config.html
... ... @@ -1,3 +1,21 @@
  1 +<?php // $Id$
  2 +
  3 +optional_variable($frm->enrol_cost, '5');
  4 +optional_variable($frm->enrol_currency, 'USD');
  5 +optional_variable($frm->enrol_mailstudents, false);
  6 +optional_variable($frm->enrol_mailteachers, false);
  7 +optional_variable($frm->enrol_mailadmins, false);
  8 +
  9 +optional_variable($frm->an_login, '');
  10 +optional_variable($frm->an_tran_key, '');
  11 +optional_variable($frm->an_password, '');
  12 +optional_variable($frm->an_referer, 'http://');
  13 +optional_variable($frm->an_test, false);
  14 +optional_variable($frm->an_review, false);
  15 +optional_variable($frm->an_review_day, 5);
  16 +
  17 +?>
  18 +
1 19 <table cellspacing="0" cellpadding="5" border="0" align="center">
2 20
3 21 <tr valign="top"><td colspan="3"><h4><?php print_string("adminauthorizewide", "enrol_authorize") ?></h4></td></tr>
9 enrol/authorize/enrol.php
@@ -388,15 +388,6 @@ function get_access_icons($course) {
388 388 function config_form($frm) {
389 389 global $CFG;
390 390
391   - $vars = array('an_login', 'an_tran_key', 'an_password', 'an_referer', 'an_test', 'an_review', 'an_review_day',
392   - 'enrol_cost', 'enrol_currency', 'enrol_mailstudents', 'enrol_mailteachers', 'enrol_mailadmins');
393   -
394   - foreach ($vars as $var) {
395   - if (!isset($frm->$var)) {
396   - $frm->$var = '';
397   - }
398   - }
399   -
400 391 if (!$this->check_openssl_loaded()) {
401 392 notify('PHP must be compiled with SSL support (--with-openssl)');
402 393 }

0 comments on commit a56d86d

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