Skip to content

Commit

Permalink
use proper PHP5 style constructor names
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed May 13, 2016
1 parent 371cb9e commit a6634cf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion helper/popularity.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class helper_plugin_pluginrepo_popularity extends DokuWiki_Plugin {
/** @var helper_plugin_pluginrepo_repository $hlp */
protected $hlp;

public function helper_plugin_pluginrepo_popularity() {
public function __construct() {
$this->hlp = $this->loadHelper('pluginrepo_repository');
}

Expand Down
2 changes: 1 addition & 1 deletion helper/repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class helper_plugin_pluginrepo_repository extends DokuWiki_Plugin {
public $bundled;
public $securitywarning = array('informationleak', 'allowsscript', 'requirespatch', 'partlyhidden');

public function helper_plugin_pluginrepo_repository() {
public function __construct() {
$this->bundled = explode(',', $this->getConf('bundled'));
$this->bundled = array_map('trim', $this->bundled);
$this->bundled = array_filter($this->bundled);
Expand Down
2 changes: 1 addition & 1 deletion syntax/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class syntax_plugin_pluginrepo_entry extends DokuWiki_Syntax_Plugin {
/**
* Constructor. Load helper plugin
*/
public function syntax_plugin_pluginrepo_entry() {
public function __construct() {
$this->hlp = plugin_load('helper', 'pluginrepo_repository');
if(!$this->hlp) msg('Loading the pluginrepo repository helper failed. Make sure the pluginrepo plugin is installed.', -1);
}
Expand Down
2 changes: 1 addition & 1 deletion syntax/news.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class syntax_plugin_pluginrepo_news extends DokuWiki_Syntax_Plugin {
/**
* Constructor. Load helper plugin
*/
function syntax_plugin_pluginrepo_news(){
function __construct(){
$this->hlp = plugin_load('helper', 'pluginrepo_repository');
if(!$this->hlp) msg('Loading the pluginrepo repository helper failed. Make sure the pluginrepo plugin is installed.',-1);
}
Expand Down
2 changes: 1 addition & 1 deletion syntax/query.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class syntax_plugin_pluginrepo_query extends DokuWiki_Syntax_Plugin {
/**
* Constructor. Load helper plugin
*/
function syntax_plugin_pluginrepo_query(){
function __construct(){
$this->hlp = plugin_load('helper', 'pluginrepo_repository');
if(!$this->hlp) msg('Loading the pluginrepo helper failed. Make sure the pluginrepo plugin is installed.',-1);
}
Expand Down
2 changes: 1 addition & 1 deletion syntax/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class syntax_plugin_pluginrepo_table extends DokuWiki_Syntax_Plugin {
/**
* Constructor. Load helper plugin
*/
function syntax_plugin_pluginrepo_table(){
function __construct(){
$this->hlp = plugin_load('helper', 'pluginrepo_repository');
if(!$this->hlp) msg('Loading the pluginrepo repository helper failed. Make sure the pluginrepo plugin is installed.',-1);
}
Expand Down

0 comments on commit a6634cf

Please sign in to comment.