mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
Update htmly.php
This commit is contained in:
parent
6bc0f8880a
commit
435f871162
1 changed files with 4 additions and 1 deletions
|
|
@ -3968,7 +3968,10 @@ get('/:static', function ($static) {
|
||||||
die;
|
die;
|
||||||
} elseif ($static === blog_path()) {
|
} elseif ($static === blog_path()) {
|
||||||
|
|
||||||
if(config('blog.enable') !== 'true') return not_found();
|
if(config('blog.enable') !== 'true') {
|
||||||
|
$url = site_url();
|
||||||
|
header("Location: $url");
|
||||||
|
}
|
||||||
|
|
||||||
if (!login()) {
|
if (!login()) {
|
||||||
file_cache($_SERVER['REQUEST_URI']);
|
file_cache($_SERVER['REQUEST_URI']);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue