Commit bdf5dc9d authored by Dries's avatar Dries
Browse files

- Patch #102413 by yched: path node/add/[poll|forum|blog] defined twice.

parent a98fa4c2
...@@ -254,8 +254,6 @@ function blog_menu($may_cache) { ...@@ -254,8 +254,6 @@ function blog_menu($may_cache) {
$items = array(); $items = array();
if ($may_cache) { if ($may_cache) {
$items[] = array('path' => 'node/add/blog', 'title' => t('Blog entry'),
'access' => user_access('edit own blog'));
$items[] = array('path' => 'blog', 'title' => t('Blogs'), $items[] = array('path' => 'blog', 'title' => t('Blogs'),
'callback' => 'blog_page', 'callback' => 'blog_page',
'access' => user_access('access content'), 'access' => user_access('access content'),
......
...@@ -35,9 +35,6 @@ function forum_menu($may_cache) { ...@@ -35,9 +35,6 @@ function forum_menu($may_cache) {
$items = array(); $items = array();
if ($may_cache) { if ($may_cache) {
$items[] = array('path' => 'node/add/forum',
'title' => t('Forum topic'),
'access' => user_access('create forum topics'));
$items[] = array('path' => 'forum', $items[] = array('path' => 'forum',
'title' => t('Forums'), 'title' => t('Forums'),
'callback' => 'forum_page', 'callback' => 'forum_page',
......
...@@ -231,8 +231,6 @@ function poll_menu($may_cache) { ...@@ -231,8 +231,6 @@ function poll_menu($may_cache) {
$items = array(); $items = array();
if ($may_cache) { if ($may_cache) {
$items[] = array('path' => 'node/add/poll', 'title' => t('Poll'),
'access' => user_access('create polls'));
$items[] = array('path' => 'poll', 'title' => t('Polls'), $items[] = array('path' => 'poll', 'title' => t('Polls'),
'callback' => 'poll_page', 'callback' => 'poll_page',
'access' => user_access('access content'), 'access' => user_access('access content'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment