block type
This commit is contained in:
parent
02ec21cb16
commit
55b697c198
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class Blocks extends Extension
|
||||||
foreach ($blocks as $block) {
|
foreach ($blocks as $block) {
|
||||||
$path = implode("/", $event->args);
|
$path = implode("/", $event->args);
|
||||||
if (strlen($path) < 4000 && fnmatch($block['pages'], $path)) {
|
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;
|
$b->is_content = false;
|
||||||
$page->add_block($b);
|
$page->add_block($b);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue