1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/13777] Reorder get_module_infos() method's arguments

PHPBB3-13777
This commit is contained in:
MateBartus
2015-05-31 16:03:11 +02:00
parent fcff3ee4ad
commit 4044b5df89
5 changed files with 18 additions and 23 deletions

View File

@@ -102,20 +102,15 @@ class module_manager
/**
* Get available module information from module files
*
* @param string $module ID of module
* @param string $module_class Class of the module (acp, ucp, mcp etc...)
* @param string $module ID of module
* @param bool $use_all_available Use all available instead of just all
* enabled extensions
*
* @return array Array with module information gathered from module info files.
*/
public function get_module_infos($module = '', $module_class = null, $use_all_available = false)
public function get_module_infos($module_class, $module = '', $use_all_available = false)
{
if ($module_class === null)
{
throw new module_class_not_defined_exception();
}
$directory = $this->phpbb_root_path . 'includes/' . $module_class . '/info/';
$fileinfo = array();