Port PHP4 style classes to PHP5

The next version of PHP will deprecated the PHP4 style classes.

References: KW-99
This commit is contained in:
Jelle van der Waa 2016-08-01 09:51:29 +02:00
parent ed708a24c3
commit 300c060be1
2 changed files with 2 additions and 4 deletions

View File

@ -19,9 +19,9 @@ class PluginMDMModule extends Module
* @param int $id unique id.
* @param array $data list of all actions.
*/
function PluginMDMModule($id, $data)
function __construct($id, $data)
{
parent::Module($id, $data);
parent::__construct($id, $data);
$this->server = (PLUGIN_MDM_SERVER_SSL ? 'https://' : 'http://') . PLUGIN_MDM_SERVER;

View File

@ -3,8 +3,6 @@
* Handles plugin registration.
*/
class PluginMDM extends Plugin {
// Constructor
function PluginMDM(){}
/**
* Called to initialize the plugin and register for hooks.