Tidying up some of the url mess in #182 - include the revision *IF* there's a code_id

This commit is contained in:
Remy Sharp 2012-06-19 23:22:08 +01:00
parent f6886097ad
commit bd83d9ba51

View File

@ -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) {