Compatibilité arrayColumn et arrayCollumn
This commit is contained in:
parent
1caefb2d99
commit
1d8aa3c0d3
@ -104,6 +104,14 @@ class helper {
|
|||||||
return $newArray;
|
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
|
* Génère un backup des données de site
|
||||||
|
@ -342,7 +342,7 @@ class common {
|
|||||||
|
|
||||||
// Construit la liste des pages parents/enfants
|
// Construit la liste des pages parents/enfants
|
||||||
if($this->hierarchy['all'] === []) {
|
if($this->hierarchy['all'] === []) {
|
||||||
$pages = helper::arraycollumn($this->getData(['page']), 'position', 'SORT_ASC');
|
$pages = helper::arrayColumn($this->getData(['page']), 'position', 'SORT_ASC');
|
||||||
// Parents
|
// Parents
|
||||||
foreach($pages as $pageId => $pagePosition) {
|
foreach($pages as $pageId => $pagePosition) {
|
||||||
if(
|
if(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user