bug fix #772
This commit is contained in:
parent
bcd67d4e02
commit
5267f1bf00
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
Loading…
Reference in New Issue