]> git.quilime.com - plog.git/commitdiff
added page title
authorGabriel Dunne <gdunne@quilime.com>
Sat, 10 Jul 2010 01:11:06 +0000 (18:11 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Sat, 10 Jul 2010 01:11:06 +0000 (18:11 -0700)
public/index.php

index 204b88c645baeb82737195a519b4c27fb9e3ca88..f73f29e5e525672840eafe136ac4d2f4a8f80a95 100644 (file)
@@ -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