Browse Source

Small corrections

pull/189/head
Danang Probo Sayekti 10 years ago
parent
commit
7da19e45fb
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      README.md
  2. +3
    -3
      system/htmly.php

+ 1
- 1
README.md View File

@ -1,7 +1,7 @@
HTMLy HTMLy
===== =====
HTMLy is an open source databaseless, blogging platform that prioritizes simplicity and speed (Flat-File Blog). HTMLy can be referred to as a Flat-File CMS, since it will also manage your content.
HTMLy is an open source databaseless blogging platform that prioritizes simplicity and speed (Flat-File Blog). HTMLy can be referred to as a Flat-File CMS, since it will also manage your content.
You do not need to use a VPS to run HTMLy, shared hosting or even free hosting should work as long as the host supports at least PHP 5.3. You do not need to use a VPS to run HTMLy, shared hosting or even free hosting should work as long as the host supports at least PHP 5.3.


+ 3
- 3
system/htmly.php View File

@ -948,10 +948,10 @@ post('/add/post', function () {
$user = $_SESSION[config("site.url")]['user']; $user = $_SESSION[config("site.url")]['user'];
if ($proper && !empty($title) && !empty($tag) && !empty($content)) { if ($proper && !empty($title) && !empty($tag) && !empty($content)) {
if (!empty($url)) { if (!empty($url)) {
add_post($title, $tag, $url, $content, $user, $description, $fi, $vid);
add_post($title, $tag, $url, $content, $user, $description, $img, $vid);
} else { } else {
$url = $title; $url = $title;
add_post($title, $tag, $url, $content, $user, $description, $fi, $vid);
add_post($title, $tag, $url, $content, $user, $description, $img, $vid);
} }
} else { } else {
$message['error'] = ''; $message['error'] = '';
@ -974,7 +974,7 @@ post('/add/post', function () {
'canonical' => site_url(), 'canonical' => site_url(),
'error' => '<ul>' . $message['error'] . '</ul>', 'error' => '<ul>' . $message['error'] . '</ul>',
'postTitle' => $title, 'postTitle' => $title,
'postFi' => $fi,
'postImg' => $img,
'postVid' => $vid, 'postVid' => $vid,
'postTag' => $tag, 'postTag' => $tag,
'postUrl' => $url, 'postUrl' => $url,


Loading…
Cancel
Save