From 7da19e45fb3b77e4b0de2a4ecf520b3b8dcd4d61 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Mon, 13 Jul 2015 09:53:19 +0700 Subject: [PATCH] Small corrections --- README.md | 2 +- system/htmly.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0158cbe..8a92e2d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ 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. diff --git a/system/htmly.php b/system/htmly.php index ba72a8f..92f7aa7 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -948,10 +948,10 @@ post('/add/post', function () { $user = $_SESSION[config("site.url")]['user']; if ($proper && !empty($title) && !empty($tag) && !empty($content)) { if (!empty($url)) { - add_post($title, $tag, $url, $content, $user, $description, $fi, $vid); + add_post($title, $tag, $url, $content, $user, $description, $img, $vid); } else { $url = $title; - add_post($title, $tag, $url, $content, $user, $description, $fi, $vid); + add_post($title, $tag, $url, $content, $user, $description, $img, $vid); } } else { $message['error'] = ''; @@ -974,7 +974,7 @@ post('/add/post', function () { 'canonical' => site_url(), 'error' => '', 'postTitle' => $title, - 'postFi' => $fi, + 'postImg' => $img, 'postVid' => $vid, 'postTag' => $tag, 'postUrl' => $url,