Remove bogus `$menuItem->isLandingPage` check from acp/menuItemAdd.tpl
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 11:49:24 +0000 (13:49 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 11:49:24 +0000 (13:49 +0200)
This property doesn't exist and even if it would exist, this change would only
be applied in the template, not in PHP. And even if the check would be applied
in PHP, it would not be required. It is perfectly supported to disable all menu
item, including the landing page's. It looks a bit odd, but does not cause
errors.

wcfsetup/install/files/acp/templates/menuItemAdd.tpl

index 6b52ac6780ab42e2079f9505f041e97802da2f1d..d6762df5dd441d7c3abca20ca9ccc8ddf296b3c8 100644 (file)
                        </dd>
                </dl>
                
-               {if $action == 'add' || !$menuItem->isLandingPage}
+               {if $action == 'add'}
                        <dl>
                                <dt></dt>
                                <dd>