mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Update htmly.php
This commit is contained in:
parent
3d8b037169
commit
54823b1003
1 changed files with 6 additions and 2 deletions
|
|
@ -428,8 +428,12 @@ get('/front/edit', function () {
|
|||
// Show the "Add content" page
|
||||
get('/add/content', function () {
|
||||
|
||||
$req = _h($_GET['type']);
|
||||
|
||||
if (isset($_GET['type'])) {
|
||||
$req = _h($_GET['type']);
|
||||
} else {
|
||||
$req = 'post';
|
||||
}
|
||||
|
||||
$type = 'is_' . $req;
|
||||
|
||||
if (login()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue