mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 00:01:05 +00:00
Merge pull request #329 from octfx/dev
refactor: Don't create sections if they are disabled
This commit is contained in:
commit
bc1c1c9001
|
@ -72,7 +72,9 @@ final class BodyContent extends Partial {
|
|||
}
|
||||
|
||||
// Check if it is not the main page
|
||||
if ( !$title->isMainPage() && $title->isContentPage() ) {
|
||||
if ( $this->getConfigValue( 'CitizenEnableCollapsibleSections' ) === true &&
|
||||
!$title->isMainPage() &&
|
||||
$title->isContentPage() ) {
|
||||
$doc = $this->parseXhtml( $htmlBodyContent );
|
||||
|
||||
// Make top level sections
|
||||
|
|
Loading…
Reference in a new issue