From 1d8aa3c0d3951d2ab4e2881ae1c4d2761cc86e84 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 6 Apr 2022 09:38:58 +0200 Subject: [PATCH] =?UTF-8?q?Compatibilit=C3=A9=20arrayColumn=20et=20arrayCo?= =?UTF-8?q?llumn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/helper.class.php | 8 ++++++++ core/core.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 316a2774..fc8bb552 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -104,6 +104,14 @@ class helper { return $newArray; } + /** + * Compatibilité avec les anciens modules + */ + public static function arrayCollumn($array, $column, $sort = null) { + return (helper::arrayColumn($array, $column, $sort)); + } + + /** * Génère un backup des données de site diff --git a/core/core.php b/core/core.php index 14e41489..d268d52b 100644 --- a/core/core.php +++ b/core/core.php @@ -342,7 +342,7 @@ class common { // Construit la liste des pages parents/enfants if($this->hierarchy['all'] === []) { - $pages = helper::arraycollumn($this->getData(['page']), 'position', 'SORT_ASC'); + $pages = helper::arrayColumn($this->getData(['page']), 'position', 'SORT_ASC'); // Parents foreach($pages as $pageId => $pagePosition) { if(