Commit 2d50f1f0 authored by Dries's avatar Dries

- Patch #6982 by David: fixed link problem with page nodes

parent 66dad43b
......@@ -100,6 +100,13 @@ function page_link($type, $node = 0, $main) {
$links = array();
if ($type == "page" && user_access("access content")) {
$result = db_query("SELECT n.nid, n.title, p.link, p.description FROM {page} p INNER JOIN {node} n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link");
while ($page = db_fetch_object($result)) {
$links[] = l($page->link, "node/view/$page->nid", array("title" => $page->description));
}
}
if ($type == 'system') {
if (page_access('create', $node)) {
menu("node/add/page", t("page"), "node_page", 0);
......
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