summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--display_structure_inc.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/display_structure_inc.php b/display_structure_inc.php
index d70d1c6..67beeac 100644
--- a/display_structure_inc.php
+++ b/display_structure_inc.php
@@ -11,12 +11,13 @@
/**
* 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_NOT_FOUND );
- }
-?>
+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_NOT_FOUND );
+}
+