Skip to content

Commit a6634cf

Browse files
committed
use proper PHP5 style constructor names
1 parent 371cb9e commit a6634cf

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

helper/popularity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class helper_plugin_pluginrepo_popularity extends DokuWiki_Plugin {
99
/** @var helper_plugin_pluginrepo_repository $hlp */
1010
protected $hlp;
1111

12-
public function helper_plugin_pluginrepo_popularity() {
12+
public function __construct() {
1313
$this->hlp = $this->loadHelper('pluginrepo_repository');
1414
}
1515

helper/repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class helper_plugin_pluginrepo_repository extends DokuWiki_Plugin {
2727
public $bundled;
2828
public $securitywarning = array('informationleak', 'allowsscript', 'requirespatch', 'partlyhidden');
2929

30-
public function helper_plugin_pluginrepo_repository() {
30+
public function __construct() {
3131
$this->bundled = explode(',', $this->getConf('bundled'));
3232
$this->bundled = array_map('trim', $this->bundled);
3333
$this->bundled = array_filter($this->bundled);

syntax/entry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class syntax_plugin_pluginrepo_entry extends DokuWiki_Syntax_Plugin {
1919
/**
2020
* Constructor. Load helper plugin
2121
*/
22-
public function syntax_plugin_pluginrepo_entry() {
22+
public function __construct() {
2323
$this->hlp = plugin_load('helper', 'pluginrepo_repository');
2424
if(!$this->hlp) msg('Loading the pluginrepo repository helper failed. Make sure the pluginrepo plugin is installed.', -1);
2525
}

syntax/news.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class syntax_plugin_pluginrepo_news extends DokuWiki_Syntax_Plugin {
1818
/**
1919
* Constructor. Load helper plugin
2020
*/
21-
function syntax_plugin_pluginrepo_news(){
21+
function __construct(){
2222
$this->hlp = plugin_load('helper', 'pluginrepo_repository');
2323
if(!$this->hlp) msg('Loading the pluginrepo repository helper failed. Make sure the pluginrepo plugin is installed.',-1);
2424
}

syntax/query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class syntax_plugin_pluginrepo_query extends DokuWiki_Syntax_Plugin {
2121
/**
2222
* Constructor. Load helper plugin
2323
*/
24-
function syntax_plugin_pluginrepo_query(){
24+
function __construct(){
2525
$this->hlp = plugin_load('helper', 'pluginrepo_repository');
2626
if(!$this->hlp) msg('Loading the pluginrepo helper failed. Make sure the pluginrepo plugin is installed.',-1);
2727
}

syntax/table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class syntax_plugin_pluginrepo_table extends DokuWiki_Syntax_Plugin {
1818
/**
1919
* Constructor. Load helper plugin
2020
*/
21-
function syntax_plugin_pluginrepo_table(){
21+
function __construct(){
2222
$this->hlp = plugin_load('helper', 'pluginrepo_repository');
2323
if(!$this->hlp) msg('Loading the pluginrepo repository helper failed. Make sure the pluginrepo plugin is installed.',-1);
2424
}

0 commit comments

Comments
 (0)