Bug fixes
This commit is contained in:
parent
e6b44e15b2
commit
cb0d6cc145
|
@ -74,7 +74,7 @@ function build_page($key)
|
||||||
$user = $dbUsers->getDb( $Page->username() );
|
$user = $dbUsers->getDb( $Page->username() );
|
||||||
|
|
||||||
$Page->setField('authorFirstName', $user['firstName'], false);
|
$Page->setField('authorFirstName', $user['firstName'], false);
|
||||||
|
|
||||||
$Page->setField('authorLastName', $user['lastName'], false);
|
$Page->setField('authorLastName', $user['lastName'], false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -167,14 +167,13 @@ if( ($Url->whereAmI()==='page') && ($Url->notFound()===false) )
|
||||||
// Default homepage
|
// Default homepage
|
||||||
if($Url->notFound()===false)
|
if($Url->notFound()===false)
|
||||||
{
|
{
|
||||||
if( ($Site->homepage()!=='home') && ($Url->whereAmI()==='home') )
|
if( Text::isNotEmpty($Site->homepage()) && ($Url->whereAmI()==='home') )
|
||||||
{
|
{
|
||||||
$Url->setWhereAmI('page');
|
$Url->setWhereAmI('page');
|
||||||
|
|
||||||
$Page = build_page( $Site->homepage() );
|
$Page = build_page( $Site->homepage() );
|
||||||
|
|
||||||
if($Page===false)
|
if($Page===false) {
|
||||||
{
|
|
||||||
$Url->setWhereAmI('home');
|
$Url->setWhereAmI('home');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ class pluginPages extends Plugin {
|
||||||
|
|
||||||
foreach($parents as $parent)
|
foreach($parents as $parent)
|
||||||
{
|
{
|
||||||
if($Site->homepage()!==$parent->key())
|
//if($Site->homepage()!==$parent->key())
|
||||||
{
|
{
|
||||||
// Print the parent
|
// Print the parent
|
||||||
$html .= '<li><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a>';
|
$html .= '<li><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a>';
|
||||||
|
|
Loading…
Reference in New Issue