blob: 6c3e498b6f6bdccfe48aef91419020d9f299074e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
/**
* structure_display_inc
*
* @author spider <spider@steelsun.com>
* @version $Revision$
* @package liberty
* @subpackage functions
*/
/**
* required setup
*/
use Bitweaver\KernelTools;
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( KernelTools::tra( 'Page cannot be found' ), null, null, HttpStatusCodes::HTTP_GONE );
}
|