diff --git a/core/class/helper.class.php b/core/class/helper.class.php index fc623eab..43bb9a53 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 86d53c7b..1a5dc92f 100644 --- a/core/core.php +++ b/core/core.php @@ -346,7 +346,7 @@ class common { // Construit la liste des pages parents/enfants if($this->hierarchy['all'] === []) { - $pages = helper::arrayColumn($this->getData(['page']), 'position', 'SORT_ASC'); + $pages = helper::arrayCollumn($this->getData(['page']), 'position', 'SORT_ASC'); // Parents foreach($pages as $pageId => $pagePosition) { if(