Skip to content

Commit

Permalink
Возможность пропускать блок в конфиге через 'blockName' => false
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhelskiy committed Apr 24, 2017
1 parent 22f1eeb commit 480e164
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions classes/modules/viewer/Viewer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,12 @@ protected function BuildBlocks()
*/
foreach ($aRule['blocks'] as $sGroup => $aBlocks) {
foreach ((array)$aBlocks as $sName => $aParams) {
/**
* Если нужно пропустить блок
*/
if ($aParams === false) {
continue;
}
/**
* Если название блока указывается в параметрах
*/
Expand Down

0 comments on commit 480e164

Please sign in to comment.