authentication plugins: MDL-21343 Add missing $OUTPUT global variables used in plugin...
authorInaki <iarenuno@eteo.mondragon.edu>
Thu, 14 Jan 2010 18:54:12 +0000 (18:54 +0000)
committerInaki <iarenuno@eteo.mondragon.edu>
Thu, 14 Jan 2010 18:54:12 +0000 (18:54 +0000)
auth/cas/auth.php
auth/imap/auth.php
auth/ldap/auth.php
auth/pop3/auth.php
auth/radius/auth.php

index e1f1475..9687cdd 100644 (file)
@@ -194,6 +194,8 @@ if ( !is_object($PHPCAS_CLIENT) ) {
      * @param array $page An object containing all the data for this page.
      */
     function config_form($config, $err, $user_fields) {
+        global $OUTPUT;
+
         include 'config.html';
     }
     /**
index 9bf042d..ef4d382 100644 (file)
@@ -123,6 +123,8 @@ class auth_plugin_imap extends auth_plugin_base {
      * @param array $page An object containing all the data for this page.
      */
     function config_form($config, $err, $user_fields) {
+        global $OUTPUT;
+
         include "config.html";
     }
 
index 33a17f4..57ab132 100644 (file)
@@ -1967,6 +1967,8 @@ class auth_plugin_ldap extends auth_plugin_base {
      * @param array $page An object containing all the data for this page.
      */
     function config_form($config, $err, $user_fields) {
+        global $OUTPUT;
+
         include 'config.html';
     }
 
index a49f510..1559d22 100644 (file)
@@ -123,6 +123,8 @@ class auth_plugin_pop3 extends auth_plugin_base {
      * @param array $page An object containing all the data for this page.
      */
     function config_form($config, $err, $user_fields) {
+        global $OUTPUT;
+
         include "config.html";
     }
 
index e6eb6a5..5795978 100644 (file)
@@ -158,6 +158,8 @@ class auth_plugin_radius extends auth_plugin_base {
      * @param array $page An object containing all the data for this page.
      */
     function config_form($config, $err, $user_fields) {
+        global $OUTPUT;
+
         include "config.html";
     }