Browse Source

Bug Fix on Meta Description Author Page

pull/82/head
Kanti 11 years ago
parent
commit
cd0d4cce2f
2 changed files with 3 additions and 5 deletions
  1. +2
    -3
      system/admin/views/edit-profile.html.php
  2. +1
    -2
      system/htmly.php

+ 2
- 3
system/admin/views/edit-profile.html.php View File

@ -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 @@
<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>


+ 1
- 2
system/htmly.php View File

@ -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…
Cancel
Save