diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 13:33:58 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 13:33:58 +0000 |
commit | 81a0698f97c9e92639109caa5215a503b823b968 (patch) | |
tree | ec5e0ecc275881a7812b2286ef884e9721cb0253 /mod/blog/start.php | |
parent | f3193c88779111516fb21923a7991eb765e4a127 (diff) | |
download | elgg-81a0698f97c9e92639109caa5215a503b823b968.tar.gz elgg-81a0698f97c9e92639109caa5215a503b823b968.tar.bz2 |
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
Diffstat (limited to 'mod/blog/start.php')
-rw-r--r-- | mod/blog/start.php | 12 |
1 files changed, 3 insertions, 9 deletions
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/<username> * User's archives: pg/blog/archives/<username>/<time_start>/<time_stop> * Blog post: pg/blog/read/<guid>/<title> - * 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: |