Skip to content

Commit

Permalink
type hinting consistency with parent function
Browse files Browse the repository at this point in the history
to prevent PHP Strict Standards error
  • Loading branch information
ssahara committed Jan 28, 2016
1 parent d7694bf commit 7eaa291
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.php
Expand Up @@ -21,7 +21,7 @@
class action_plugin_loadskin extends DokuWiki_Action_Plugin {

// register hook
public function register(&$controller) {
public function register(Doku_Event_Handler $controller) {
$controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, '_handleConf');
$controller->register_hook('MEDIAMANAGER_STARTED', 'BEFORE', $this, '_handleConf');
$controller->register_hook('DETAIL_STARTED', 'BEFORE', $this, '_handleConf');
Expand All @@ -39,7 +39,7 @@ public function register(&$controller) {
*
* @author Anika Henke <anika@selfthinker.org>
*/
public function _defineConstants(&$event, $param) {
public function _defineConstants(Doku_Event $event, $param) {
global $conf;

// define Template baseURL
Expand All @@ -57,7 +57,7 @@ public function _defineConstants(&$event, $param) {
* @author Michael Klier <chi@chimeric.de>
* @author Anika Henke <anika@selfthinker.org>
*/
public function _handleConf(&$event, $param) {
public function _handleConf(Doku_Event $event, $param) {
global $conf;

// store original template in helper attribute
Expand All @@ -76,7 +76,7 @@ public function _handleConf(&$event, $param) {
*
* @author Anika Henke <anika@selfthinker.org>
*/
public function _handleContent(&$event, $param){
public function _handleContent(Doku_Event $event, $param){
// @todo: should ideally be in showTemplateSwitcher()
$isOverwrittenByAdmin = !$this->getConf('preferUserChoice') && $this->_getTplPerNamespace();

Expand Down

0 comments on commit 7eaa291

Please sign in to comment.