diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:52:56 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:52:56 +0100 |
| commit | 83a18e46025e9b45705fa41909a6f85c34ee14eb (patch) | |
| tree | d5d9801869d89081fc3640797e0bbd3ef9f0c8d2 /admin | |
| parent | 0bd96c1c2d11b4b781dad5b5b98af3add4bd9369 (diff) | |
| download | rss-83a18e46025e9b45705fa41909a6f85c34ee14eb.tar.gz rss-83a18e46025e9b45705fa41909a6f85c34ee14eb.tar.bz2 rss-83a18e46025e9b45705fa41909a6f85c34ee14eb.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/admin_rssmodules.php | 8 | ||||
| -rw-r--r-- | admin/index.php | 2 | ||||
| -rw-r--r-- | admin/schema_inc.php | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/admin/admin_rssmodules.php b/admin/admin_rssmodules.php index aa24360..aa32877 100644 --- a/admin/admin_rssmodules.php +++ b/admin/admin_rssmodules.php @@ -42,7 +42,7 @@ if( isset( $_REQUEST["view"] ) ) { if( $_REQUEST["rss_id"] ) { $info = $rsslib->get_rss_module( $_REQUEST["rss_id"] ); } else { - $info = array(); + $info = []; $info["name"] = ''; $info["description"] = ''; @@ -60,12 +60,11 @@ $gBitSmarty->assign('show_title', $info["show_title"]); $gBitSmarty->assign('show_pub_date', $info["show_pub_date"]); if (isset($_REQUEST["remove"])) { - + $rsslib->remove_rss_module($_REQUEST["remove"]); } if (isset($_REQUEST["save"])) { - if (isset($_REQUEST['show_title']) == 'on') { $gBitSmarty->assign('show_title', 'y'); @@ -132,7 +131,6 @@ if ($offset > 0) { $gBitSmarty->assign('channels', $channels["data"]); - // Display the template -$gBitSystem->display( 'bitpackage:rss/admin_rssmodules.tpl', NULL, array( 'display_mode' => 'admin' )); +$gBitSystem->display( 'bitpackage:rss/admin_rssmodules.tpl', NULL, [ 'display_mode' => 'admin' ]); diff --git a/admin/index.php b/admin/index.php index 1e6de35..30a5490 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,4 +1,4 @@ -<?php +<?php // This is not a package. header ("location: ../index.php"); diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 94e6b0d..6bea023 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -1,5 +1,4 @@ <?php -use BitInstaller; global $gBitInstaller; $tables = [ @@ -28,10 +27,10 @@ foreach( array_keys( $tables ) AS $tableName ) { $gBitInstaller->registerSchemaTable( RSS_PKG_NAME, $tableName, $tables[$tableName] ); } -$gBitInstaller->registerPackageInfo( RSS_PKG_NAME, array( +$gBitInstaller->registerPackageInfo( RSS_PKG_NAME, [ 'description' => "Resource Description Framework (RDF) Site Summary (RSS) is a lightweight multipurpose extensible metadata description and syndication format. It allows users to read healines from your site with a dedicated RSS reader.", 'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>', -) ); +] ); // ### Default Preferences $gBitInstaller->registerPreferences( RSS_PKG_NAME, [ |
