diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-28 17:12:45 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-28 17:12:45 +0100 |
| commit | ca99260af5783d2d12b3f79fbd43a1aadbef15ff (patch) | |
| tree | 480f93931abd90b5a9982b4e1e577903dbe09520 /view_post_image.php | |
| parent | c29fea0ae79977f09fd7b4706c88f3ecb90a4575 (diff) | |
| download | blogs-ca99260af5783d2d12b3f79fbd43a1aadbef15ff.tar.gz blogs-ca99260af5783d2d12b3f79fbd43a1aadbef15ff.tar.bz2 blogs-ca99260af5783d2d12b3f79fbd43a1aadbef15ff.zip | |
General code updated to PHP8.4 and namespace
Diffstat (limited to 'view_post_image.php')
| -rwxr-xr-x[-rw-r--r--] | view_post_image.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/view_post_image.php b/view_post_image.php index d7dff02..b1f70e9 100644..100755 --- a/view_post_image.php +++ b/view_post_image.php @@ -13,17 +13,16 @@ /** * required setup */ -require_once( '../kernel/includes/setup_inc.php' ); +require_once '../kernel/includes/setup_inc.php'; -include_once( BLOGS_PKG_CLASS_PATH.'BitBlog.php' ); +include_once BLOGS_PKG_CLASS_PATH.'BitBlog.php'; if (!isset($_REQUEST["image_id"])) { $gBitSmarty->assign('msg', tra("No image id given")); - $gBitSystem->display( 'error.tpl' , NULL, array( 'display_mode' => 'display' )); + $gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'display' )); die; } -$imageInfo = $gBlog->getStorageFileInfo($_REQUEST["image_id"]); +$imageInfo = $gBlog->getStoreFileInfo($_REQUEST["image_id"]); $gBitSmarty->assign( 'imageInfo' , $imageInfo ); -$gBitSystem->display( 'bitpackage:blogs/view_post_image.tpl' , NULL, array( 'display_mode' => 'display' )); -?> +$gBitSystem->display( 'bitpackage:blogs/view_post_image.tpl' , null, array( 'display_mode' => 'display' ));
\ No newline at end of file |
