diff options
| -rw-r--r-- | display_structure_inc.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/display_structure_inc.php b/display_structure_inc.php index 024d72b..ad57084 100644 --- a/display_structure_inc.php +++ b/display_structure_inc.php @@ -11,12 +11,12 @@ /** * required setup */ - global $gContent; - include_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); - if( is_object( $gContent ) && $gContent->isValid() ) { - $gBitSystem->setBrowserTitle( $gStructure->getRootTitle().' : '.$gContent->getTitle() ); - include $gContent->getRenderFile(); - } else { - $gBitSystem->fatalError( tra( 'Page cannot be found' ), NULL, NULL, HttpStatusCodes::HTTP_GONE ); - } -?> +global $gContent; +include_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); +if( is_object( $gContent ) && $gContent->isValid() ) { + $gBitSystem->setBrowserTitle( $gStructure->getRootTitle().' : '.$gContent->getTitle() ); + $gBitSystem->setCanonicalLink( $gContent->getDisplayUri() ); + include $gContent->getRenderFile(); +} else { + $gBitSystem->fatalError( tra( 'Page cannot be found' ), NULL, NULL, HttpStatusCodes::HTTP_GONE ); +} |
