diff options
author | MateBartus <mate.bartus@gmail.com> | 2015-05-31 16:03:11 +0200 |
---|---|---|
committer | MateBartus <mate.bartus@gmail.com> | 2015-05-31 16:03:11 +0200 |
commit | 4044b5df8997b720ef86955f9e660189962182ea (patch) | |
tree | 56cd660b6f875df175c7539d96c956c288880233 /phpBB/phpbb/module/module_manager.php | |
parent | fcff3ee4ad2a273081ed3061a550399dfaa9c11e (diff) | |
download | forums-4044b5df8997b720ef86955f9e660189962182ea.tar forums-4044b5df8997b720ef86955f9e660189962182ea.tar.gz forums-4044b5df8997b720ef86955f9e660189962182ea.tar.bz2 forums-4044b5df8997b720ef86955f9e660189962182ea.tar.xz forums-4044b5df8997b720ef86955f9e660189962182ea.zip |
[ticket/13777] Reorder get_module_infos() method's arguments
PHPBB3-13777
Diffstat (limited to 'phpBB/phpbb/module/module_manager.php')
-rw-r--r-- | phpBB/phpbb/module/module_manager.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/phpBB/phpbb/module/module_manager.php b/phpBB/phpbb/module/module_manager.php index da3b037b5e..707e297257 100644 --- a/phpBB/phpbb/module/module_manager.php +++ b/phpBB/phpbb/module/module_manager.php @@ -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(); |