From 09d548f224660fff743e4eeb2c2af41570e182b1 Mon Sep 17 00:00:00 2001 From: Adrien <af@brain-networks.fr> Date: Mon, 31 Dec 2018 16:55:18 +0100 Subject: [PATCH] ListViewsession php7 --- include/ListView/ListViewSession.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/include/ListView/ListViewSession.php b/include/ListView/ListViewSession.php index 4d4c17c7b..2219ecd5d 100644 --- a/include/ListView/ListViewSession.php +++ b/include/ListView/ListViewSession.php @@ -25,15 +25,21 @@ class ListViewSession { * Portions created by vtigerCRM are Copyright (C) vtigerCRM. * All Rights Reserved. */ - - function ListViewSession() - { - global $log,$currentModule; + function __construct() + { + global $log,$currentModule; $log->debug("Entering ListViewSession() method ..."); $this->module = $currentModule; $this->sortby = 'ASC'; $this->start =1; + } + function ListViewSession() + { + // PHP4-style constructor. + // This will NOT be invoked, unless a sub-class that extends `foo` calls it. + // In that case, call the new-style constructor to keep compatibility. + self::__construct(); } function getCurrentPage($currentModule,$viewId){ -- GitLab