diff options
author | Dominik Eckelmann <deckelmann@gmail.com> | 2012-11-29 16:06:43 +0100 |
---|---|---|
committer | Dominik Eckelmann <deckelmann@gmail.com> | 2012-11-29 16:06:43 +0100 |
commit | 38479cbba628ee76a92ff5f3c974cfa8e6ce9e61 (patch) | |
tree | 710a0bca9a6f0704903f295bf6237807685d53fa /lib/plugins/popularity/action.php | |
parent | 818f6d5179dd55f43e04269bc03e0afd5459c27e (diff) | |
download | rpg-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.gz rpg-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.bz2 |
some coding style improvements
- removed some dead/unused code
- fixed phpdoc
- added typing on methods
Diffstat (limited to 'lib/plugins/popularity/action.php')
-rw-r--r-- | lib/plugins/popularity/action.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/plugins/popularity/action.php b/lib/plugins/popularity/action.php index 1c7a2f65d..f0cbb771b 100644 --- a/lib/plugins/popularity/action.php +++ b/lib/plugins/popularity/action.php @@ -9,6 +9,10 @@ require_once(DOKU_PLUGIN.'action.php'); require_once(DOKU_PLUGIN.'popularity/admin.php'); class action_plugin_popularity extends Dokuwiki_Action_Plugin { + + /** + * @var helper_plugin_popularity + */ var $helper; function action_plugin_popularity(){ @@ -22,7 +26,7 @@ class action_plugin_popularity extends Dokuwiki_Action_Plugin { $controller->register_hook('INDEXER_TASKS_RUN', 'AFTER', $this, '_autosubmit', array()); } - function _autosubmit(&$event, $param){ + function _autosubmit(Doku_Event &$event, $param){ //Do we have to send the data now if ( !$this->helper->isAutosubmitEnabled() || $this->_isTooEarlyToSubmit() ){ return; |