diff options
| author | spiderr <spider@viovio.com> | 2013-03-05 09:50:07 -0500 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-03-05 09:50:07 -0500 |
| commit | 12cafa5cd2efecff64992b503dfdd6d5f5f4d163 (patch) | |
| tree | b9469610347e6af37b872327c3d89fea1c6e317c | |
| parent | e239d4838a867549440efbcbeaf4a5147e29fc12 (diff) | |
| parent | b065614ffa87ef813999a952e4d0e048fd38836f (diff) | |
| download | liberty-PRE_BOOTSTRAP.tar.gz liberty-PRE_BOOTSTRAP.tar.bz2 liberty-PRE_BOOTSTRAP.zip | |
use GONE for not found; default sort_modePRE_BOOTSTRAP
| -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 ); +} |
