mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-38373 Use correct PEAR->loadExtension()
Current use is wrong (static) and leads to strict standards notice.
This commit is contained in:
parent
7112729206
commit
07c4a94952
2 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
=================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue