Skip to content

Commit

Permalink
fix bizarre wrongness in search params
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmj committed Sep 16, 2016
1 parent 6855aa7 commit 0fdf162
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 112 deletions.
1 change: 0 additions & 1 deletion CommentingPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ public static function showComments($args = array())
|| (get_option('commenting_allow_public_view') == 1)
|| is_allowed('Commenting_Comment', 'show') ) {
$options = array('threaded'=> get_option('commenting_threaded'), 'approved'=>true);

$comments = isset($args['comments']) ? $args['comments'] : $view->getComments($options);
echo $view->partial('comments.php', array('comments'=>$comments, 'threaded'=>$options['threaded']));
}
Expand Down
19 changes: 0 additions & 19 deletions helpers/GetCommentForm.php

This file was deleted.

89 changes: 0 additions & 89 deletions helpers/GetComments.php

This file was deleted.

4 changes: 1 addition & 3 deletions views/helpers/GetComments.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ private function _getRecordType($params)

public function getComments($options = array(), $record_id = null, $record_type = null)
{

$request = Zend_Controller_Front::getInstance()->getRequest();
$params = $request->getParams();

Expand All @@ -79,8 +78,7 @@ public function getComments($options = array(), $record_id = null, $record_type
$searchParams['flagged'] = 0;
$searchParams['is_spam'] = 0;
}

$select = $commentTable->getSelectForFindBy($searchParams = array());
$select = $commentTable->getSelectForFindBy($searchParams);
if(isset($options['order'])) {
$select->order("ORDER BY added " . $options['order']);
}
Expand Down

0 comments on commit 0fdf162

Please sign in to comment.