From cd0d4cce2fd7eef53d84448bdfa6c9a925d10d75 Mon Sep 17 00:00:00 2001 From: Kanti Date: Fri, 22 Aug 2014 07:34:56 +0200 Subject: [PATCH] Bug Fix on Meta Description Author Page --- system/admin/views/edit-profile.html.php | 5 ++--- system/htmly.php | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/system/admin/views/edit-profile.html.php b/system/admin/views/edit-profile.html.php index 8bda830..1736c62 100644 --- a/system/admin/views/edit-profile.html.php +++ b/system/admin/views/edit-profile.html.php @@ -12,8 +12,8 @@ $oldcontent = remove_html_comments($content); } else { - $oldtitle = $user; - $oldcontent = 'Just another HTMLy user.'; + $oldtitle = $user; + $oldcontent = 'Just another HTMLy user.'; } ?> @@ -28,7 +28,6 @@
Title *


- Meta Description (optional)



diff --git a/system/htmly.php b/system/htmly.php index 1db5edb..eb92b66 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -501,9 +501,8 @@ post('/edit/profile', function() { $user = $_SESSION[config("site.url")]['user']; $title = from($_REQUEST, 'title'); $content = from($_REQUEST, 'content'); - $description = from($_REQUEST, 'description'); if ($proper && !empty($title) && !empty($content)) { - edit_profile($title, $content, $user, $description); + edit_profile($title, $content, $user); } else { $message['error'] = ''; if (empty($title)) {