Compatibility with PHP 5.4
This commit is contained in:
parent
740f7d7f30
commit
e803820eb8
6 changed files with 6 additions and 5 deletions
|
@ -13,7 +13,7 @@
|
|||
* @ingroup views_argument_handlers
|
||||
*/
|
||||
class views_handler_argument_many_to_one extends views_handler_argument {
|
||||
function init(&$view, &$options) {
|
||||
function init(&$view, $options) {
|
||||
parent::init($view, $options);
|
||||
$this->helper = new views_many_to_one_helper($this);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class views_object {
|
|||
* Set default options on this object. Called by the constructor in a
|
||||
* complex chain to deal with backward compatibility.
|
||||
*/
|
||||
function options() { }
|
||||
function options(&$options) { }
|
||||
|
||||
/**
|
||||
* Set default options.
|
||||
|
|
|
@ -29,6 +29,7 @@ class views_handler_field_comment_username extends views_handler_field {
|
|||
|
||||
function render_link($data, $values) {
|
||||
if (!empty($this->options['link_to_user'])) {
|
||||
$account = new stdClass();
|
||||
$account->uid = $values->{$this->aliases['uid']};
|
||||
$account->name = $values->{$this->field_alias};
|
||||
$account->homepage = $values->{$this->aliases['homepage']};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
class views_handler_filter_node_access extends views_handler_filter {
|
||||
function admin_summary() { }
|
||||
function operator_form() { }
|
||||
function operator_form(&$form, &$form_state) { }
|
||||
function can_expose() {
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
class views_handler_filter_node_status extends views_handler_filter {
|
||||
function admin_summary() { }
|
||||
function operator_form() { }
|
||||
function operator_form(&$form, &$form_state) { }
|
||||
|
||||
function query() {
|
||||
$table = $this->ensure_my_table();
|
||||
|
|
|
@ -6,7 +6,7 @@ class views_handler_field_user_name extends views_handler_field_user {
|
|||
/**
|
||||
* Add uid in the query so we can test for anonymous if needed.
|
||||
*/
|
||||
function init(&$view, &$data) {
|
||||
function init(&$view, $data) {
|
||||
parent::init($view, $data);
|
||||
if (!empty($this->options['overwrite_anonymous'])) {
|
||||
$this->additional_fields['uid'] = 'uid';
|
||||
|
|
Reference in a new issue