From: Gabriel Dunne Date: Sat, 10 Jul 2010 01:11:06 +0000 (-0700) Subject: added page title X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=e39e1b22355a615b155a2e120b31e70bd65a2bf9;p=plog.git added page title --- 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