mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 04:26:22 +05:30
Bug Fix on Meta Description Author Page
This commit is contained in:
parent
3597a26f28
commit
cd0d4cce2f
2 changed files with 3 additions and 5 deletions
|
|
@ -28,7 +28,6 @@
|
|||
<div class="wmd-panel">
|
||||
<form method="POST">
|
||||
Title <span class="required">*</span> <br><input type="text" name="title" class="text <?php if (isset($postTitle)) { if (empty($postTitle)) { echo 'error';}} ?>" value="<?php echo $oldtitle?>"/><br><br>
|
||||
Meta Description (optional)<br><input type="text" class="text" name="description" value="<?php if (isset($postDescription)) { echo $postDescription;} ?>"/><br>
|
||||
<br>
|
||||
<div id="wmd-button-bar" class="wmd-button-bar"></div>
|
||||
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea><br>
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue