1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Added more missing data from page vars. Precaution for if mb_convert_encoding() is missing. TinyMce member template added.

This commit is contained in:
Cameron
2016-02-29 22:01:58 -08:00
parent 0898cc272e
commit 881adeeeda
3 changed files with 35 additions and 4 deletions

View File

@@ -438,7 +438,7 @@ class pageClass
//$bookId = $row['chapter_parent'];
$bookSef = $this->getSef($row['chapter_parent']);
$bookTitle = $this->getName($row['chapter_parent']);
$urlData = array(
'chapter_id' => $row['chapter_id'],
'chapter_name' => $tp->toHtml($row['chapter_name']),
@@ -490,10 +490,14 @@ class pageClass
'title' => $page['page_title'],
'text' => $tp->toHtml($page['page_text'],true)
);*/
$page['chapter_id'] = $page['page_chapter'];
$page['chapter_name'] = $this->getName($page['page_chapter']);
$page['chapter_parent'] = $this->getParent($page['page_chapter']);
$page['chapter_sef'] = $this->getSef($page['page_chapter']); // $chapter_sef;
$page['book_id'] = $page['chapter_parent'];
$page['book_name'] = $this->getName($page['chapter_parent']);
$page['book_sef'] = $bookSef;
$page['book_id'] = $this->getParent($page['chapter_parent']);
// $this->page = $page;
$this->batch->setVars($page);