summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:54:15 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:54:15 +0100
commit4f72c4761359485da48b19eb8d9cf525797e7df8 (patch)
treefe82ef7aa5142b6aca98dbfa49445df3897e1f56 /admin
parent7c55576c11eaa4586f93461cbd70c54b74b38c36 (diff)
downloadfisheye-4f72c4761359485da48b19eb8d9cf525797e7df8.tar.gz
fisheye-4f72c4761359485da48b19eb8d9cf525797e7df8.tar.bz2
fisheye-4f72c4761359485da48b19eb8d9cf525797e7df8.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/admin_fisheye_inc.php10
-rwxr-xr-xadmin/schema_inc.php12
2 files changed, 11 insertions, 11 deletions
diff --git a/admin/admin_fisheye_inc.php b/admin/admin_fisheye_inc.php
index 6eece9f..7a4ce66 100755
--- a/admin/admin_fisheye_inc.php
+++ b/admin/admin_fisheye_inc.php
@@ -7,7 +7,7 @@ $formGalleryGeneral = [
"fisheye_menu_text" => [
'label' => 'Menu Text',
'note' => '',
- 'type' => 'text'
+ 'type' => 'text',
],
/* Disabled for now - spiderr
"feature_megaupload" => [
@@ -19,24 +19,24 @@ $formGalleryGeneral = [
"liberty_offline_thumbnailer" => [
'label' => 'Background Thumbnailer',
'note' => 'Thumbnails will be queued and regenerated by a background command-line script. For more information, see '.FISHEYE_PKG_PATH.'thumbaniler.php or you can <a href="'.FISHEYE_PKG_URL.'thumbnailer.php">run it manually</a>',
- 'type' => 'checkbox'
+ 'type' => 'checkbox',
],
"fisheye_show_public_on_upload" => [
'label' => 'Show Public Galleries on Upload',
'note' => 'Enable this if you want to have all public galleries visible when uploading files. This might cause problems on large sites with many public galleries.',
- 'type' => 'checkbox'
+ 'type' => 'checkbox',
],
"fisheye_show_all_to_admins" => [
'label' => 'Show all Galleries to Administrators',
'note' => 'This will allow gallery admins to upload and move around images in all galleries. This might cause problems on large sites with many galleries.',
- 'type' => 'checkbox'
+ 'type' => 'checkbox',
],
];
if( !$gBitSystem->isPackageActive( 'gigaupload' ) ) {
$formGalleryGeneral["fisheye_extended_upload_slots"] = [
'label' => 'Extended Upload Slots',
'note' => 'When you enable this, users can enter the title and description of the file when uploading them.',
- 'type' => 'checkbox'
+ 'type' => 'checkbox',
];
};
$gBitSmarty->assign('formGalleryGeneral', $formGalleryGeneral);
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index f1852a3..caea58d 100755
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -43,13 +43,13 @@ $gBitInstaller->registerSchemaIndexes( FISHEYE_PKG_NAME, $indices );
$gBitInstaller->registerPackageInfo( FISHEYE_PKG_NAME, [
'description' => "FishEye is a package for creating image galleries",
- 'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>'
+ 'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>',
] );
// ### Sequences
$sequences = [
'fisheye_gallery_id_seq' => [ 'start' => 1 ],
- 'fisheye_image_id_seq' => [ 'start' => 1 ]
+ 'fisheye_image_id_seq' => [ 'start' => 1 ],
];
$gBitInstaller->registerSchemaSequences( FISHEYE_PKG_NAME, $sequences );
@@ -73,7 +73,7 @@ $gBitInstaller->registerPreferences( FISHEYE_PKG_NAME, [
[ FISHEYE_PKG_NAME, 'fisheye_menu_text','Image Galleries'],
// more intuitive if we can see all galleries we can upload images to
[ FISHEYE_PKG_NAME, 'fisheye_show_public_on_upload','n'],
- [ FISHEYE_PKG_NAME, 'fisheye_show_all_to_admins','n'],
+ [ FISHEYE_PKG_NAME, 'fisheye_show_all_to_admins','n'],
] );
// ### Default User Permissions
@@ -87,7 +87,7 @@ $gBitInstaller->registerUserPermissions( FISHEYE_PKG_NAME, [
['p_fisheye_upload_nonimages', 'Can upload non_image files', 'editors', FISHEYE_PKG_NAME],
['p_fisheye_change_thumb_size', 'Can set the thumbnail size for a gallery', 'editors', FISHEYE_PKG_NAME],
['p_fisheye_create_public_gal', 'Can create public galleries any user can load images into', 'editors', FISHEYE_PKG_NAME],
- ['p_fisheye_download_gallery_arc',' Can download an archived copy of Fisheye gallery', 'registered', FISHEYE_PKG_NAME]
+ ['p_fisheye_download_gallery_arc',' Can download an archived copy of Fisheye gallery', 'registered', FISHEYE_PKG_NAME],
] );
if( defined( 'RSS_PKG_NAME' )) {
@@ -97,13 +97,13 @@ if( defined( 'RSS_PKG_NAME' )) {
}
// ### Register content types
-$gBitInstaller->registerContentObjects( FISHEYE_PKG_NAME, [
+$gBitInstaller->registerContentObjects( FISHEYE_PKG_NAME, [
'FisheyeGallery'=>FISHEYE_PKG_CLASS_PATH.'FisheyeGallery.php',
'FisheyeImage'=>FISHEYE_PKG_CLASS_PATH.'FisheyeImage.php',
] );
// Requirements
$gBitInstaller->registerRequirements( FISHEYE_PKG_NAME, [
- 'liberty' => [ 'min' => '5.0.0' ],
+ 'liberty' => [ 'min' => '5.0.0' ],
]);