Plugin Directory

Changeset 1864977


Ignore:
Timestamp:
04/26/2018 06:25:51 PM (8 years ago)
Author:
oskarn97
Message:

fix comment

Location:
appful/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • appful/trunk/controllers/respond.php

    r1864976 r1864977  
    1515            $appful_api->error("No post specified. Include 'post_id' var in your request.");
    1616            die();
    17         } else if (empty($_REQUEST['comment_name']) || empty($_REQUEST['email']) || empty($_REQUEST['content'])) {
     17        } else if (empty($_REQUEST['author_name']) || empty($_REQUEST['email']) || empty($_REQUEST['content'])) {
    1818                $appful_api->error("Please include all required arguments (name, email, content).");
    1919                die();
  • appful/trunk/models/comment.php

    r1864976 r1864977  
    6767        $data = array(
    6868            'comment_post_ID' => $_REQUEST["post_id"],
    69             'comment_author' => $_REQUEST["comment_name"],
     69            'comment_author' => $_REQUEST["author_name"],
    7070            'comment_author_email' => $_REQUEST["email"],
    7171            'comment_author_url' => $_REQUEST["url"],
Note: See TracChangeset for help on using the changeset viewer.