From 81a0698f97c9e92639109caa5215a503b823b968 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 29 Dec 2010 13:33:58 +0000 Subject: new content link uses guid to make supporting groups and users easier git-svn-id: http://code.elgg.org/elgg/trunk@7736 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/start.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'mod/blog/start.php') diff --git a/mod/blog/start.php b/mod/blog/start.php index 1c0cc8b21..3a0fdc676 100644 --- a/mod/blog/start.php +++ b/mod/blog/start.php @@ -83,11 +83,10 @@ function blog_runonce() { * Friends' blog: pg/blog/friends/ * User's archives: pg/blog/archives/// * Blog post: pg/blog/read// - * New post: pg/blog/new + * New post: pg/blog/new/<guid> * Edit post: pg/blog/edit/<guid>/<revision> * Preview post: pg/blog/preview/<guid> * Group blog: pg/blog/group/<guid>/owner - * Group new post: pg/blog/group/<guid>/new * * Title is ignored * @@ -143,19 +142,14 @@ function blog_page_handler($page) { break; case 'new': gatekeeper(); - $params = blog_get_page_content_edit($page_type); + $params = blog_get_page_content_edit($page_type, $page[1]); break; case 'edit': gatekeeper(); $params = blog_get_page_content_edit($page_type, $page[1], $page[2]); break; case 'group': - if ($page[2] == 'new') { - gatekeeper(); - $params = blog_get_page_content_edit($page_type, $page[1]); - } else { - $params = blog_get_page_content_list($page[1]); - } + $params = blog_get_page_content_list($page[1]); break; case 'all': default: -- cgit v1.2.3