Minor - Add documentation about origin of global $cas - refs BT#16484

pull/3090/head
Yannick Warnier 6 years ago
parent c5ed429ee3
commit 48b5fb533b
  1. 1
      main/auth/cas/cas_var.inc.php
  2. 1
      main/inc/lib/template.lib.php

@ -7,6 +7,7 @@
if (api_is_cas_activated()) {
require_once __DIR__.'/../../../vendor/apereo/phpcas/source/CAS.php';
// Get the $cas array from app/config/auth.conf.php
global $cas;
if (is_array($cas) && array_key_exists('debug', $cas) && !empty($cas['debug'])) {

@ -1132,6 +1132,7 @@ class Template
*/
public static function displayLoginForm()
{
// Get the $cas array from app/config/auth.conf.php
global $cas;
if (is_array($cas) && array_key_exists('replace_login_form', $cas) && $cas['replace_login_form'] == true) {

Loading…
Cancel
Save