From ee40219d6ae6fa0b3e79fde07075d288d76fb2a6 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 7 Mar 2013 15:38:40 +0100 Subject: [PATCH] MDL-38373 Use correct PEAR->loadExtension() Current use is wrong (static) and leads to strict standards notice. --- lib/pear/Auth/RADIUS.php | 3 ++- lib/pear/README_MOODLE.txt | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/pear/Auth/RADIUS.php b/lib/pear/Auth/RADIUS.php index d40050da232..34b2bf9a592 100644 --- a/lib/pear/Auth/RADIUS.php +++ b/lib/pear/Auth/RADIUS.php @@ -46,7 +46,7 @@ require_once 'PEAR.php'; * @version $Revision$ */ -PEAR::loadExtension('radius'); +// PEAR::loadExtension('radius'); // Moodle commented. See MDL-38373. /** * class Auth_RADIUS @@ -127,6 +127,7 @@ class Auth_RADIUS extends PEAR { */ function Auth_RADIUS() { + $this->loadExtension('radius'); // Moodle added. See MDL-38373. $this->PEAR(); } diff --git a/lib/pear/README_MOODLE.txt b/lib/pear/README_MOODLE.txt index 9632e50b63e..f80418478b1 100644 --- a/lib/pear/README_MOODLE.txt +++ b/lib/pear/README_MOODLE.txt @@ -1,6 +1,12 @@ MOODLE-SPECIFIC PEAR MODIFICATIONS ================================== +Auth/RADIUS +=========== + +1/ Changed static call to correct alternative (MDL-38373): + - From: PEAR::loadExtension('radius'); (in global scope) + - To: $this->loadExtension('radius'); (in constructor) Spreadsheet/Excel ================= -- 2.11.4.GIT