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