From 28fe999d54c9011d50ea22411f3ae8c81a2d3dd7 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 28 Jul 2016 15:18:01 +1000 Subject: [PATCH] Added meta->title to pages, and subitem fixes --- classes/lnApp/ORM.php | 1 + views/theme/baseadmin/page.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/lnApp/ORM.php b/classes/lnApp/ORM.php index e5c510a..059afad 100644 --- a/classes/lnApp/ORM.php +++ b/classes/lnApp/ORM.php @@ -356,6 +356,7 @@ abstract class lnApp_ORM extends Kohana_ORM { public function subitem_add(Model $item) { array_push($this->_sub_items,$item); + $this->_sub_items_sorted = FALSE; } public function subitem_get($model,array $key) { diff --git a/views/theme/baseadmin/page.php b/views/theme/baseadmin/page.php index a996858..a9af071 100644 --- a/views/theme/baseadmin/page.php +++ b/views/theme/baseadmin/page.php @@ -1,7 +1,7 @@ - <?php echo Site::Appname(); ?> + <?php echo Site::Appname(); ?><?php echo $meta->title ? ' - '.$meta->title : '' ?>