summaryrefslogtreecommitdiff
path: root/view.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-28 16:19:05 +0100
committerlsces <lester@lsces.co.uk>2025-08-28 16:19:05 +0100
commit2140176e21e83d3779460277a31bcc7adaf9d3fe (patch)
treef7e1d27e3428e63c2b635a4474e57cf14158241a /view.php
parentd4cf8eb6b69ff23eedcba9359ce9a1ed4e2a7d9c (diff)
downloadfisheye-2140176e21e83d3779460277a31bcc7adaf9d3fe.tar.gz
fisheye-2140176e21e83d3779460277a31bcc7adaf9d3fe.tar.bz2
fisheye-2140176e21e83d3779460277a31bcc7adaf9d3fe.zip
General code updated to PHP8.4 and namespace ... work in progress on updating some third party code
Diffstat (limited to 'view.php')
-rwxr-xr-x[-rw-r--r--]view.php20
1 files changed, 8 insertions, 12 deletions
diff --git a/view.php b/view.php
index 3514f2d..61b8546 100644..100755
--- a/view.php
+++ b/view.php
@@ -5,20 +5,18 @@
* @subpackage functions
*/
+use Bitweaver\KernelTools;
+
/**
* required setup
*/
-require_once( '../kernel/includes/setup_inc.php' );
+require_once '../kernel/includes/setup_inc.php';
$gBitSystem->verifyPackage( 'fisheye' );
-require_once( FISHEYE_PKG_CLASS_PATH.'FisheyeGallery.php');
-require_once( FISHEYE_PKG_CLASS_PATH.'FisheyeImage.php');
global $gBitSystem, $fisheyeErrors, $fisheyeWarnings, $fisheyeSuccess;
-//$gDebug = TRUE;
-
-include_once( FISHEYE_PKG_INCLUDE_PATH.'gallery_lookup_inc.php' );
+include_once FISHEYE_PKG_INCLUDE_PATH.'gallery_lookup_inc.php';
if( $gContent && $gContent->isValid() ) {
$gBitSystem->setCanonicalLink( $gContent->getDisplayUrl() );
@@ -29,17 +27,17 @@ $gHideModules = $gBitSystem->isFeatureActive( 'fisheye_gallery_hide_modules' );
if ( !$gContent->isValid() ) {
// No gallery was indicated so we will redirect to the browse galleries page
- bit_redirect( FISHEYE_PKG_URL."list_galleries.php", '404' );
+ KernelTools::bit_redirect( FISHEYE_PKG_URL."list_galleries.php", '404' );
die;
}
if( $gContent->isCommentable() ) {
$commentsParentId = $gContent->mContentId;
- $comments_vars = Array('fisheyegallery');
+ $comments_vars = [ 'fisheyegallery' ];
$comments_prefix_var='fisheyegallery:';
$comments_object_var='fisheyegallery';
$comments_return_url = $_SERVER['SCRIPT_NAME']."?gallery_id=".$gContent->mGalleryId;
- include_once( LIBERTY_PKG_INCLUDE_PATH.'comments_inc.php' );
+ include_once LIBERTY_PKG_INCLUDE_PATH.'comments_inc.php';
}
if (!empty($_REQUEST['download'])){
@@ -48,7 +46,5 @@ if (!empty($_REQUEST['download'])){
$gContent->verifyUserPermission('p_fisheye_download_gallery_arc');
$gContent->download();
} else {
- require_once( FISHEYE_PKG_INCLUDE_PATH.'display_fisheye_gallery_inc.php' );
+ require_once FISHEYE_PKG_INCLUDE_PATH.'display_fisheye_gallery_inc.php';
}
-
-?>