Skip to content

Commit

Permalink
Merge pull request #188 from raabf/auth_local_ldap_new_style_constructor
Browse files Browse the repository at this point in the history
bugfix(auth_ldap,auth_local) migrate to new style `__construct`
  • Loading branch information
mattpascoe authored Jun 12, 2024
2 parents f356082 + 79210fe commit 49cd54e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions www/include/auth/ldap.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class auth_ldap extends auth_local {
var $founduser = false;

/**
* Constructor
* Constructor: auth_ldap
*
* Reads configuration and checks for PHP LDAP module.
*/
function auth_ldap(){
function __construct(){
global $conf,$base;

// load in system default ldap config
Expand Down
6 changes: 3 additions & 3 deletions www/include/auth/local.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ class auth_local {
var $user = null;

/**
* Constructor.
* Constructor: auth_local
*
* Carry out sanity checks to ensure the object is
* able to operate.
*
* @author Christopher Smith <chris@jalakai.co.uk>
*/
function auth_local() {
// the base class constructor does nothing, derived class
function __construct() {
// the base class constructor does nothing, derived class
// constructors do the real work
}

Expand Down

0 comments on commit 49cd54e

Please sign in to comment.