mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-18 15:18:04 +00:00
Tidying up some of the url mess in #182 - include the revision *IF* there's a code_id
This commit is contained in:
parent
f6886097ad
commit
bd83d9ba51
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user