block type

This commit is contained in:
Shish 2020-01-30 10:26:36 +00:00
parent 02ec21cb16
commit 55b697c198

View file

@ -49,7 +49,7 @@ class Blocks extends Extension
foreach ($blocks as $block) {
$path = implode("/", $event->args);
if (strlen($path) < 4000 && fnmatch($block['pages'], $path)) {
$b = new Block($block['title'], $block['content'], $block['area'], $block['priority']);
$b = new Block($block['title'], $block['content'], $block['area'], (int)$block['priority']);
$b->is_content = false;
$page->add_block($b);
}