mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
[ticket/10601] Comment explaning the basename applied to categories
Explain in the code where if (isset($this->module_categories_basenames[$cat_name])) and if (isset($this->module_categories_basenames[$level2_name])) exists, what does it do. PHPBB3-10601
This commit is contained in:
parent
61842c317a
commit
81547ba980
1 changed files with 2 additions and 0 deletions
|
@ -1479,6 +1479,7 @@ class install_install extends module
|
|||
foreach ($this->module_categories[$module_class] as $cat_name => $subs)
|
||||
{
|
||||
$basename = '';
|
||||
// Check if this sub-category has a basename. If it has, use it.
|
||||
if (isset($this->module_categories_basenames[$cat_name]))
|
||||
{
|
||||
$basename = $this->module_categories_basenames[$cat_name];
|
||||
|
@ -1513,6 +1514,7 @@ class install_install extends module
|
|||
foreach ($subs as $level2_name)
|
||||
{
|
||||
$basename = '';
|
||||
// Check if this sub-category has a basename. If it has, use it.
|
||||
if (isset($this->module_categories_basenames[$level2_name]))
|
||||
{
|
||||
$basename = $this->module_categories_basenames[$level2_name];
|
||||
|
|
Loading…
Add table
Reference in a new issue