Bug fixes

This commit is contained in:
dignajar 2015-08-13 22:36:03 -03:00
parent e6b44e15b2
commit cb0d6cc145
2 changed files with 4 additions and 5 deletions

View File

@ -74,7 +74,7 @@ function build_page($key)
$user = $dbUsers->getDb( $Page->username() );
$Page->setField('authorFirstName', $user['firstName'], false);
$Page->setField('authorLastName', $user['lastName'], false);
}
@ -167,14 +167,13 @@ if( ($Url->whereAmI()==='page') && ($Url->notFound()===false) )
// Default homepage
if($Url->notFound()===false)
{
if( ($Site->homepage()!=='home') && ($Url->whereAmI()==='home') )
if( Text::isNotEmpty($Site->homepage()) && ($Url->whereAmI()==='home') )
{
$Url->setWhereAmI('page');
$Page = build_page( $Site->homepage() );
if($Page===false)
{
if($Page===false) {
$Url->setWhereAmI('home');
}
}

View File

@ -47,7 +47,7 @@ class pluginPages extends Plugin {
foreach($parents as $parent)
{
if($Site->homepage()!==$parent->key())
//if($Site->homepage()!==$parent->key())
{
// Print the parent
$html .= '<li><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a>';