Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed post error

  • Loading branch information...
commit 46695cf0ec7ea0a13ab8fa5b435d6e5bbe49afd4 1 parent e8858b5
@NoahY authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 qa-history-layer.php
  2. +1 −1  qa-plugin.php
View
4 qa-history-layer.php
@@ -336,7 +336,7 @@ function user_activity_form() {
}
else if(strpos($event['event'],'q_') !== 0 && strpos($event['event'],'in_q_') !== 0) { // comment or answer
if(!isset($params['parentid'])) {
- $params['parentid'] = $event['post']['parentid'];
+ $params['parentid'] = $posts[$params['postid']]['parentid'];
}
$parent = qa_db_select_with_pending(
@@ -361,7 +361,7 @@ function user_activity_form() {
else { // question
if(!isset($params['title'])) {
- $params['title'] = $event['post']['title'];
+ $params['title'] = $posts[$params['postid']]['title'];
}
if($params['title'] !== null) {
$activity_url = qa_path_html(qa_q_request($params['postid'], $params['title']), null, qa_opt('site_url'));
View
2  qa-plugin.php
@@ -3,7 +3,7 @@
Plugin Name: History
Plugin URI: https://github.com/NoahY/q2a-history
Plugin Description: Adds complete activity history list to user profile
- Plugin Version: 1.8
+ Plugin Version: 1.9
Plugin Date: 2011-10-26
Plugin Author: NoahY
Plugin Author URI: http://www.question2answer.org/qa/user/NoahY
Please sign in to comment.
Something went wrong with that request. Please try again.