Skip to content

Commit

Permalink
Merge pull request #21 from peterkraume/php7-compat
Browse files Browse the repository at this point in the history
[BUGFIX] change constructor for PHP 7 compatibility
  • Loading branch information
kartolo authored Mar 14, 2017
2 parents 08b1630 + 0e62085 commit 193188c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pi/class.dmailsubscribe.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class user_dmailsubscribe
/**
* Constructor.
*/
public function user_dmailsubscribe()
public function __construct()
{
$this->cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
$this->conf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['feadmin.']['dmailsubscription.'];
Expand All @@ -87,6 +87,14 @@ public function user_dmailsubscribe()
$this->pi_loadLL();
}

/**
* keep old constructor for backwards compatibility
*/
public function user_dmailsubscribe()
{
self::__construct();
}

/**
* Userfunc called per TS to create categories check boxes.
*
Expand Down

0 comments on commit 193188c

Please sign in to comment.