diff options
Diffstat (limited to 'code/pages.inc.php')
-rw-r--r-- | code/pages.inc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/code/pages.inc.php b/code/pages.inc.php index 2024303..e3af67a 100644 --- a/code/pages.inc.php +++ b/code/pages.inc.php @@ -6,7 +6,7 @@ var $pages = array(); - function Get($page, $type, $extra = null) { + function Get($page, $type) { if(!$this->Exists($page, $type)) return array('title' => $page, 'content' => ErrorMessage('PageNotFound', array('page' => $page))); @@ -22,7 +22,7 @@ $data['_page'] = $page; $data['_type'] = $type; - return $GLOBALS['templates'][$pagedata['template']]->Get($data); + return $GLOBALS['templates'][$pagedata['template']]->GetPage($data); } function GetEditor($page, $type, $backlink) { @@ -39,8 +39,9 @@ $data = $pagedata['data']; $data['_page'] = $page; $data['_type'] = $type; + $data['_backlink'] = $backlink; - return $this->Get($pagedata['template'], 'e', array('_data' => $data, '_backlink' => $backlink)); + return $GLOBALS['templates'][$pagedata['template']]->GetEditor($data); } function Exists($page, $type) { |