|
|
@ -3239,7 +3239,7 @@ get('/:static/:sub/edit', function ($static, $sub) { |
|
|
$page = find_subpage($static, $sub); |
|
|
$page = find_subpage($static, $sub); |
|
|
|
|
|
|
|
|
if (!$page) { |
|
|
if (!$page) { |
|
|
$page = find_draft_subpage($static, $sub); |
|
|
|
|
|
|
|
|
$page = find_draft_subpage($sub); |
|
|
if (!$page) { |
|
|
if (!$page) { |
|
|
not_found(); |
|
|
not_found(); |
|
|
} else { |
|
|
} else { |
|
|
@ -3341,7 +3341,7 @@ get('/:static/:sub/delete', function ($static, $sub) { |
|
|
$page = find_subpage($static, $sub); |
|
|
$page = find_subpage($static, $sub); |
|
|
|
|
|
|
|
|
if (!$page) { |
|
|
if (!$page) { |
|
|
$page = find_draft_subpage($static, $sub); |
|
|
|
|
|
|
|
|
$page = find_draft_subpage($sub); |
|
|
if (!$page) { |
|
|
if (!$page) { |
|
|
not_found(); |
|
|
not_found(); |
|
|
} else { |
|
|
} else { |
|
|
|