Compatibility with PHP 5.4
This commit is contained in:
parent
f031b04ea4
commit
6630f264ef
3 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ class nodecomment_handler_field_author extends views_handler_field_user_name {
|
|||
/**
|
||||
* Override init function to add uid and homepage fields.
|
||||
*/
|
||||
function init(&$view, &$data) {
|
||||
function init(&$view, $data) {
|
||||
parent::init($view, $data);
|
||||
$this->additional_fields['uid'] = array('table' => 'users', 'field' => 'uid');
|
||||
$this->additional_fields['user_name'] = array('table' => 'users', 'field' => 'name');
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Field handler to display the number of new comments
|
||||
*/
|
||||
class nodecomment_handler_field_node_new_comments extends views_handler_field_node_new_comments {
|
||||
function pre_render(&$values) {
|
||||
function pre_render($values) {
|
||||
global $user;
|
||||
if (!$user->uid || empty($values)) {
|
||||
return;
|
||||
|
|
|
@ -7,7 +7,7 @@ class views_handler_field_username_comment extends views_handler_field {
|
|||
/**
|
||||
* Override init function to add uid and homepage fields.
|
||||
*/
|
||||
function init(&$view, &$data) {
|
||||
function init(&$view, $data) {
|
||||
parent::init($view, $data);
|
||||
$this->additional_fields['uid'] = 'uid';
|
||||
$this->additional_fields['homepage'] = 'homepage';
|
||||
|
@ -47,4 +47,4 @@ class views_handler_field_username_comment extends views_handler_field {
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Reference in a new issue