Compatibilité arrayColumn et arrayCollumn

This commit is contained in:
fredtempez 2022-04-06 09:38:58 +02:00
parent a263ebc2a4
commit c10149eb42
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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(