From 5267f1bf0068435bd9be36a1625ea47052095606 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sun, 9 Sep 2018 17:53:08 +0200 Subject: [PATCH] bug fix #772 --- bl-kernel/functions.php | 4 +++- bl-kernel/pages.class.php | 4 +++- bl-plugins/simple-stats/languages/es.json | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index 93a45112..3826a5c6 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -165,7 +165,9 @@ function buildParentPages() { foreach ($pagesKey as $pageKey) { try { $page = new Page($pageKey); - array_push($list, $page); + if ($page->isParent()) { + array_push($list, $page); + } } catch (Exception $e) { // continue } diff --git a/bl-kernel/pages.class.php b/bl-kernel/pages.class.php index 12f77043..5bbd3926 100644 --- a/bl-kernel/pages.class.php +++ b/bl-kernel/pages.class.php @@ -334,7 +334,9 @@ class Pages extends dbJSON { return false; } - // Returns a database with published pages keys + // Returns a database with published pages + // $onlyKeys = true; Returns only the pages keys + // $onlyKeys = false; Returns part of the database, I do not recommend use this public function getPublishedDB($onlyKeys=true) { $tmp = $this->db; diff --git a/bl-plugins/simple-stats/languages/es.json b/bl-plugins/simple-stats/languages/es.json index c44012dc..362e865b 100644 --- a/bl-plugins/simple-stats/languages/es.json +++ b/bl-plugins/simple-stats/languages/es.json @@ -7,6 +7,6 @@ "visits": "Visitas", "visits-today": "Visitas de hoy", "unique-visitors-today": "Visitantes únicos de hoy", - "chart": "Chart", - "table": "Table" -} + "chart": "Gráfico", + "table": "Tabla" +} \ No newline at end of file