MDL-38373 Use correct PEAR->loadExtension()

Current use is wrong (static) and leads to strict standards notice.
This commit is contained in:
Eloy Lafuente (stronk7) 2013-03-07 15:38:40 +01:00
parent 7112729206
commit 07c4a94952
2 changed files with 8 additions and 1 deletions

View file

@ -46,7 +46,7 @@ require_once 'PEAR.php';
* @version $Revision$ * @version $Revision$
*/ */
PEAR::loadExtension('radius'); // PEAR::loadExtension('radius'); // Moodle commented. See MDL-38373.
/** /**
* class Auth_RADIUS * class Auth_RADIUS
@ -127,6 +127,7 @@ class Auth_RADIUS extends PEAR {
*/ */
function Auth_RADIUS() function Auth_RADIUS()
{ {
$this->loadExtension('radius'); // Moodle added. See MDL-38373.
$this->PEAR(); $this->PEAR();
} }

View file

@ -1,6 +1,12 @@
MOODLE-SPECIFIC PEAR MODIFICATIONS 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 Spreadsheet/Excel
================= =================