mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Proper parsing of BOOK SC in List Chapters
Book shortcodes doesn't get parsed in template-start and template-end portion of List Chapters template, which seems unreasonable.
This commit is contained in:
4
page.php
4
page.php
@@ -342,7 +342,7 @@ class pageClass
|
||||
|
||||
if($sql->select("page_chapters", "*", "chapter_parent = ".intval($book)." AND chapter_visibility IN (".USERCLASS_LIST.") ORDER BY chapter_order ASC "))
|
||||
{
|
||||
$text .= $template['start'];
|
||||
$text .= $tp->simpleParse($template['start'],$bvar);
|
||||
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
@@ -371,7 +371,7 @@ class pageClass
|
||||
|
||||
}
|
||||
|
||||
$text .= $template['end'];
|
||||
$text .= $tp->simpleParse($template['end'], $bvar);
|
||||
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user