From e39e1b22355a615b155a2e120b31e70bd65a2bf9 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Fri, 9 Jul 2010 18:11:06 -0700 Subject: [PATCH] added page title --- public/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/index.php b/public/index.php index 204b88c..f73f29e 100644 --- a/public/index.php +++ b/public/index.php @@ -13,6 +13,7 @@ # content folder if (is_dir(LOCAL_ROOT . CONTENT_DIR . DIRECTORY_SEPARATOR . $url_parts['url']) && $url_parts['url'] != "/") { list($data, $total) = get_data(array($url_parts['url'])); + $t->assign('page_title', preg_replace('{^/|/$}', '', $url_parts['url'])); $t->assign('data', $data); } # single file -- 2.34.1