isValid() ) { $gBitSystem->fatalError( KernelTools::tra( "No component exists with the given ID" ) ,'error.tpl', '', HttpStatusCodes::HTTP_GONE ); } $displayHash = [ 'perm_name' => 'p_stock_view' ]; $gContent->invokeServices( 'content_display_function', $displayHash ); $gBitSystem->setBrowserTitle( $gContent->getTitle() ); if( $gBitThemes->isAjaxRequest() ) { $gBitSmarty->display( $gContent->getRenderTemplate() ); } else { $gBitSystem->display( $gContent->getRenderTemplate() , null, [ 'display_mode' => 'display' ] ); }