From bd83d9ba51801ac06af6e094fc75966453eb024a Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Tue, 19 Jun 2012 23:22:08 +0100 Subject: [PATCH] Tidying up some of the url mess in #182 - include the revision *IF* there's a code_id --- public/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index d4f929aa..f021cc91 100644 --- a/public/index.php +++ b/public/index.php @@ -13,8 +13,10 @@ if ($code_id) { $code_id = $code; -// Always include the revision. -$code_id .= '/' . ($revision || 1); +// always include revision *if* we have a code_id +if ($code_id && $revision) { + $code_id .= '/' . $revision; +} $code_id_path = ROOT; if ($code_id) {