Commit 8d4650c4 authored by natrak's avatar natrak
Browse files

- fixed a problem with node retrival if several nodes had the same title but only

  one was posted and the rest expired/dumped/queued.
parent a98d1d7c
......@@ -101,12 +101,12 @@ function node_history($node) {
$theme->footer();
}
elseif ($number) {
$node = ($title ? node_get_object(array("title" => $title)) : node_get_object(array("nid" => ($edit[id] ? $edit[id] : $id))));
$node = ($title ? node_get_object(array("title" => $title, "status" => node_status("posted"))) : node_get_object(array("nid" => ($edit[id] ? $edit[id] : $id))));
if ($node && node_access($node)) {
switch ($op) {
case "history":
$theme->header();
$theme->box(t("History"), node_control($node) ."<DL>". node_history($node) ."</DL>");
$theme->box(t("History"), node_control($node) ."<dl>". node_history($node) ."</dl>");
$theme->footer();
break;
default:
......
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