From 775d8cde7372a378be9d8ec7e4e3c5c4124fcfd7 Mon Sep 17 00:00:00 2001 From: Xavier Perseguers <xavier@typo3.org> Date: Tue, 20 Sep 2011 00:11:17 +0200 Subject: [PATCH] [BUGFIX] Invalid method signature for t3lib_pageTree::init() Method t3lib_treeView::init() is not properly overriden in subclasses. Change-Id: Ia39eb8ba775e1f217fb77f402dd8f2ab4e1d24ae Fixes: #30062 Releases: 4.6 Reviewed-on: http://review.typo3.org/5089 Reviewed-by: Xavier Perseguers Tested-by: Xavier Perseguers --- t3lib/class.t3lib_browsetree.php | 7 ++++--- t3lib/class.t3lib_pagetree.php | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/t3lib/class.t3lib_browsetree.php b/t3lib/class.t3lib_browsetree.php index 39eb88c45c86..b64098d78f7a 100644 --- a/t3lib/class.t3lib_browsetree.php +++ b/t3lib/class.t3lib_browsetree.php @@ -49,10 +49,11 @@ class t3lib_browseTree extends t3lib_treeView { * Initialize, setting what is necessary for browsing pages. * Using the current user. * - * @param string Additional clause for selecting pages. - * @return void + * @param string $clause Additional clause for selecting pages. + * @param string $orderByFields record ORDER BY field + * @return void */ - function init($clause = '') { + function init($clause = '', $orderByFields = '') { // this will hide records from display - it has nothing todo with user rights!! $clauseExludePidList = ''; diff --git a/t3lib/class.t3lib_pagetree.php b/t3lib/class.t3lib_pagetree.php index 6c51b405eb33..23d672547493 100644 --- a/t3lib/class.t3lib_pagetree.php +++ b/t3lib/class.t3lib_pagetree.php @@ -60,10 +60,11 @@ class t3lib_pageTree extends t3lib_treeView { * Init function * REMEMBER to feed a $clause which will filter out non-readable pages! * - * @param string Part of where query which will filter out non-readable pages. - * @return void + * @param string $clause Part of where query which will filter out non-readable pages. + * @param string $orderByFields record ORDER BY field + * @return void */ - function init($clause = '') { + function init($clause = '', $orderByFields = '') { parent::init(' AND deleted=0 ' . $clause, 'sorting'); if (t3lib_extMgm::isLoaded('cms')) { -- GitLab