Commit ace24a04 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2595 Using __construct in plugin

parent 182dd7d5
......@@ -65,7 +65,7 @@ class plugin
function, else the save function. Should be set to 'TRUE' if
the construtor detects a valid LDAP object.
\sa plugin::plugin()
\sa plugin::__construct()
*/
var $is_account = FALSE;
var $initially_was_account = FALSE;
......@@ -135,7 +135,7 @@ class plugin
*
* \sa plugin()
*/
function plugin (&$config, $dn = NULL, $object = NULL)
function __construct (&$config, $dn = NULL, $object = NULL)
{
/* Configuration is fine, allways */
$this->config = &$config;
......
......@@ -860,7 +860,7 @@ function get_lock ($object)
return "";
}
/* Allow readonly access, the plugin::plugin will restrict the acls */
/* Allow readonly access, the plugin constructor will restrict the acls */
if (isset($_POST['open_readonly'])) return "";
/* Get LDAP link, check for presence of the lock entry */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment