Dotclear


Ignore:
Timestamp:
12/29/17 14:17:26 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add required attribute for mandatory fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/comment.php

    r3024 r3639  
    3131$status_combo = dcAdminCombos::getCommentStatusescombo(); 
    3232 
    33 # Adding comment 
     33# Adding comment (comming from post form, comments tab) 
    3434if (!empty($_POST['add']) && !empty($_POST['post_id'])) 
    3535{ 
     
    5959 
    6060          dcPage::addSuccessNotice(__('Comment has been successfully created.')); 
    61           http::redirect($core->getPostAdminURL($rs->post_type,$rs->post_id,false).'&co=1'); 
    6261     } catch (Exception $e) { 
    6362          $core->error->add($e->getMessage()); 
    6463     } 
     64     http::redirect($core->getPostAdminURL($rs->post_type,$rs->post_id,false).'&co=1'); 
    6565} 
    6666 
     
    218218     '<h3>'.__('Comment submitted').'</h3>'. 
    219219     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr>'.__('Author:').'</label>'. 
    220      form::field('comment_author',30,255,html::escapeHTML($comment_author)). 
     220     form::field('comment_author',30,255,html::escapeHTML($comment_author),'','',false,'required placeholder="'.__('Author').'"'). 
    221221     '</p>'. 
    222222 
Note: See TracChangeset for help on using the changeset viewer.

Sites map