This commit is contained in:
Diego Najar 2018-09-09 17:53:08 +02:00
parent bcd67d4e02
commit 5267f1bf00
3 changed files with 9 additions and 5 deletions

View File

@ -165,7 +165,9 @@ function buildParentPages() {
foreach ($pagesKey as $pageKey) { foreach ($pagesKey as $pageKey) {
try { try {
$page = new Page($pageKey); $page = new Page($pageKey);
if ($page->isParent()) {
array_push($list, $page); array_push($list, $page);
}
} catch (Exception $e) { } catch (Exception $e) {
// continue // continue
} }

View File

@ -334,7 +334,9 @@ class Pages extends dbJSON {
return false; 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) public function getPublishedDB($onlyKeys=true)
{ {
$tmp = $this->db; $tmp = $this->db;

View File

@ -7,6 +7,6 @@
"visits": "Visitas", "visits": "Visitas",
"visits-today": "Visitas de hoy", "visits-today": "Visitas de hoy",
"unique-visitors-today": "Visitantes únicos de hoy", "unique-visitors-today": "Visitantes únicos de hoy",
"chart": "Chart", "chart": "Gráfico",
"table": "Table" "table": "Tabla"
} }