diff options
Diffstat (limited to 'includes/display_fisheye_image_inc.php')
| -rwxr-xr-x[-rw-r--r--] | includes/display_fisheye_image_inc.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/display_fisheye_image_inc.php b/includes/display_fisheye_image_inc.php index ae341e1..2dfd93f 100644..100755 --- a/includes/display_fisheye_image_inc.php +++ b/includes/display_fisheye_image_inc.php @@ -4,11 +4,14 @@ * @subpackage functions */ +use \Bitweaver\HttpStatusCodes; +use Bitweaver\KernelTools; + if( !$gContent->isValid() ) { - $gBitSystem->fatalError( tra( "No image exists with the given ID" ) ,'error.tpl', '', HttpStatusCodes::HTTP_GONE ); + $gBitSystem->fatalError( KernelTools::tra( "No image exists with the given ID" ) ,'error.tpl', '', HttpStatusCodes::HTTP_GONE ); } -$displayHash = array( 'perm_name' => 'p_fisheye_view' ); +$displayHash = [ 'perm_name' => 'p_fisheye_view' ]; $gContent->invokeServices( 'content_display_function', $displayHash ); // Get the proper thumbnail size to display on this page @@ -20,6 +23,6 @@ $gBitSystem->setBrowserTitle( $gContent->getTitle() ); if( $gBitThemes->isAjaxRequest() ) { $gBitSmarty->display( $gContent->getRenderTemplate() ); } else { - $gBitSystem->display( $gContent->getRenderTemplate() , NULL, array( 'display_mode' => 'display' )); + $gBitSystem->display( $gContent->getRenderTemplate() , null, [ 'display_mode' => 'display' ] ); } |
