Skip to content

Commit f51641d

Browse files
committed
ease popularity plugin reuse
See dokuwiki#4477 for rationale
1 parent c5dc288 commit f51641d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/plugins/popularity/helper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ public function gatherAsString()
110110
* @return array
111111
* @see searchCountCallback
112112
*/
113-
protected function initEmptySearchList()
113+
public function initEmptySearchList()
114114
{
115-
return $list = array_fill_keys([
115+
return array_fill_keys([
116116
'file_count',
117117
'file_size',
118118
'file_max',
@@ -279,7 +279,7 @@ protected function addPluginUsageData(&$data)
279279
/**
280280
* Callback to search and count the content of directories in DokuWiki
281281
*
282-
* @param array &$data Reference to the result data structure
282+
* @param array &$data Reference to the result data structure, init with initEmptySearchList()
283283
* @param string $base Base usually $conf['datadir']
284284
* @param string $file current file or directory relative to $base
285285
* @param string $type Type either 'd' for directory or 'f' for file

0 commit comments

Comments
 (0)