diff options
Diffstat (limited to 'includes/structure_display_inc.php')
| -rw-r--r-- | includes/structure_display_inc.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/includes/structure_display_inc.php b/includes/structure_display_inc.php new file mode 100644 index 0000000..f0d489f --- /dev/null +++ b/includes/structure_display_inc.php @@ -0,0 +1,22 @@ +<?php +/** + * structure_display_inc + * + * @author spider <spider@steelsun.com> + * @version $Revision$ + * @package liberty + * @subpackage functions + */ + +/** + * required setup + */ +global $gContent; +include_once( LIBERTY_PKG_INCLUDE_PATH.'lookup_content_inc.php' ); +if( is_object( $gContent ) && $gContent->isValid() ) { + $gBitSystem->setBrowserTitle( $gStructure->getRootTitle().' : '.$gContent->getTitle() ); + $gBitSystem->setCanonicalLink( $gContent->getDisplayUrl() ); + include $gContent->getRenderFile(); +} else { + $gBitSystem->fatalError( tra( 'Page cannot be found' ), NULL, NULL, HttpStatusCodes::HTTP_GONE ); +} |
