diff --git a/modules/node.module b/modules/node.module index 6046585fe4bb4cccddb7308d900095d9e6ddc975..5f22252d6c835f8fd1a43a274858fd22fd72a3fd 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1400,17 +1400,15 @@ function node_add($type) { // If no (valid) node type has been provided, display a node type overview. foreach (node_list() as $type) { if (node_access('create', $type)) { - $out = '<li>'; - $out .= ' '. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))); - $out .= " <div style=\"margin-left: 20px;\">". implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</div>'; - $out .= '</li>'; + $out = '<dt>'. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))) .'</dt>'; + $out .= '<dd>'. implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</dd>'; $item[node_invoke($type, 'node_name')] = $out; } } if (isset($item)) { ksort($item); - $output = t('Choose the appropriate item from the list:') .'<ul>'. implode('', $item) .'</ul>'; + $output = t('Choose the appropriate item from the list:') .'<dl>'. implode('', $item) .'</dl>'; } else { $output = message_access(); diff --git a/modules/node/node.module b/modules/node/node.module index 6046585fe4bb4cccddb7308d900095d9e6ddc975..5f22252d6c835f8fd1a43a274858fd22fd72a3fd 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1400,17 +1400,15 @@ function node_add($type) { // If no (valid) node type has been provided, display a node type overview. foreach (node_list() as $type) { if (node_access('create', $type)) { - $out = '<li>'; - $out .= ' '. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))); - $out .= " <div style=\"margin-left: 20px;\">". implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</div>'; - $out .= '</li>'; + $out = '<dt>'. l(node_invoke($type, 'node_name'), "node/add/$type", array('title' => t('Add a new %s.', array('%s' => node_invoke($type, 'node_name'))))) .'</dt>'; + $out .= '<dd>'. implode("\n", module_invoke_all('help', 'node/add#'. $type)) .'</dd>'; $item[node_invoke($type, 'node_name')] = $out; } } if (isset($item)) { ksort($item); - $output = t('Choose the appropriate item from the list:') .'<ul>'. implode('', $item) .'</ul>'; + $output = t('Choose the appropriate item from the list:') .'<dl>'. implode('', $item) .'</dl>'; } else { $output = message_access(); diff --git a/modules/user.module b/modules/user.module index 33678c6d3974210dfe720fdbaceb8181a65cd715..34b605c59b0006f1692620946155d37b2e4e5e4d 100644 --- a/modules/user.module +++ b/modules/user.module @@ -319,7 +319,7 @@ function user_access($string, $account = NULL) { } // User #1 has all privileges: - if ($account->uid === 1) { + if ($account->uid == 1) { return TRUE; } diff --git a/modules/user/user.module b/modules/user/user.module index 33678c6d3974210dfe720fdbaceb8181a65cd715..34b605c59b0006f1692620946155d37b2e4e5e4d 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -319,7 +319,7 @@ function user_access($string, $account = NULL) { } // User #1 has all privileges: - if ($account->uid === 1) { + if ($account->uid == 1) { return TRUE; }