From 28a83cfd6ba4e88e949ff2748ce628ccae4d8db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sun, 13 Mar 2022 17:59:24 +0100 Subject: [PATCH] collumn column --- core/module/plugin/plugin.php | 4 ++-- module/blog/blog.php | 4 ++-- module/form/form.php | 2 +- module/news/news.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/module/plugin/plugin.php b/core/module/plugin/plugin.php index e2e02c18..58714466 100644 --- a/core/module/plugin/plugin.php +++ b/core/module/plugin/plugin.php @@ -301,7 +301,7 @@ class plugin extends common { // Modules installés $infoModules = helper::getModules(); // Clés moduleIds dans les pages - $inPages = helper::arrayCollumn($this->getData(['page']),'moduleId', 'SORT_DESC'); + $inPages = helper::arraycolumn($this->getData(['page']),'moduleId', 'SORT_DESC'); foreach( $inPages as $key=>$value){ $pagesInfos[ $this->getData(['page', $key, 'title' ]) ] = $value; } @@ -386,7 +386,7 @@ class plugin extends common { $pages = json_decode(file_get_contents(self::DATA_DIR . $keyi18n . '/' . 'page.json'), true); // Extraire les clés des modules - $pagesModules [$keyi18n] = array_filter(helper::arrayCollumn($pages['page'],'moduleId', 'SORT_DESC'), 'strlen'); + $pagesModules [$keyi18n] = array_filter(helper::arraycolumn($pages['page'],'moduleId', 'SORT_DESC'), 'strlen'); // Générer ls liste des pages avec module pour la sauvegarde ou le backup foreach( $pagesModules [$keyi18n] as $key=>$value ) { diff --git a/module/blog/blog.php b/module/blog/blog.php index 85608c01..4e8619c8 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -404,7 +404,7 @@ class blog extends common { public function config() { // Ids des articles par ordre de publication - $articleIds = array_keys(helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'publishedOn', 'SORT_DESC')); + $articleIds = array_keys(helper::arraycolumn($this->getData(['module', $this->getUrl(0), 'posts']), 'publishedOn', 'SORT_DESC')); // Gestion des droits d'accès $filterData=[]; foreach ($articleIds as $key => $value) { @@ -436,7 +436,7 @@ class blog extends common { // Articles en fonction de la pagination for($i = $pagination['first']; $i < $pagination['last']; $i++) { // Nombre de commentaires à approuver et approuvés - $approvals = helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'comment' ]),'approval', 'SORT_DESC'); + $approvals = helper::arraycolumn($this->getData(['module', $this->getUrl(0), 'posts', $articleIds[$i], 'comment' ]),'approval', 'SORT_DESC'); if ( is_array($approvals) ) { $a = array_values($approvals); $toApprove = count(array_keys($a,false)); diff --git a/module/form/form.php b/module/form/form.php index 9735d90e..d31afe55 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -159,7 +159,7 @@ class form extends common { public function option() { // Liste des utilisateurs - $userIdsFirstnames = helper::arrayCollumn($this->getData(['user']), 'firstname'); + $userIdsFirstnames = helper::arraycolumn($this->getData(['user']), 'firstname'); ksort($userIdsFirstnames); self::$listUsers [] = ''; foreach ($userIdsFirstnames as $userId => $userFirstname) { diff --git a/module/news/news.php b/module/news/news.php index 3dce3dac..8ef8e092 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -192,7 +192,7 @@ class news extends common { $this->update(); // Ids des news par ordre de publication - $newsIds = array_keys(helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'publishedOn', 'SORT_DESC')); + $newsIds = array_keys(helper::arraycolumn($this->getData(['module', $this->getUrl(0), 'posts']), 'publishedOn', 'SORT_DESC')); // Pagination fixe $pagination = helper::pagination($newsIds, $this->getUrl(),self::$itemsperPage ); // Liste des pages