From cd0d6d24b4e317f5ba45efb75ceb9bf6b60fa6f6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 06:24:34 +0000 Subject: [PATCH] Change the way revs work in href_compound() --- includes/node.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/node.php b/includes/node.php index 5fa7c73..be5cb0b 100644 --- a/includes/node.php +++ b/includes/node.php @@ -172,13 +172,13 @@ class Node_Controller * * @param string Base path (e.g. browse.php) * @param string Attach path (or none for current) - * @param bool Attach the current revision string? + * @param bool Attach a given revision string, null for none * * @return string Constructed path */ - function href_compound($base, $attach = null, $revstr = true) + function href_compound($base, $attach = null, $revstr = null) { - $url = Paths::fetch_arguments($base . ($revstr ? ((strpos($base, '?') !== false) ? '&' . $this->revstr : $this->revstr) : '')); + $url = Paths::fetch_arguments($base . ($revstr === null ? ((strpos($base, '?') !== false) ? '&' . $this->revstr : $this->revstr) : $revstr)); $attach = Paths::sanitize($attach); if ($attach === null) -- 2.43.5