summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:51:41 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:51:41 +0100
commit7374f3ee3f2b82ec1127df6829c6de3b7eb8f83f (patch)
treec2cde62051a96befaf440cc6bc91269ced4211f2 /admin
parenta0c052669b47eebb7cfaa4ece6f2b9aa16d3d357 (diff)
downloadfeed-7374f3ee3f2b82ec1127df6829c6de3b7eb8f83f.tar.gz
feed-7374f3ee3f2b82ec1127df6829c6de3b7eb8f83f.tar.bz2
feed-7374f3ee3f2b82ec1127df6829c6de3b7eb8f83f.zip
php-cs-fixer tidies to php8.5 standardsHEADmaster
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/admin_feed_inc.php4
-rwxr-xr-xadmin/schema_inc.php2
2 files changed, 2 insertions, 4 deletions
diff --git a/admin/admin_feed_inc.php b/admin/admin_feed_inc.php
index b3e2512..bef32ce 100755
--- a/admin/admin_feed_inc.php
+++ b/admin/admin_feed_inc.php
@@ -12,7 +12,7 @@ if( !empty( $_REQUEST['store_feed'] ) ) {
foreach ( array_keys( $contentTypes ) as $type ){
if( !empty( $_REQUEST[$type]['conjugation_phrase'] ) || !empty( $_REQUEST[$type]['is_target_linked'] ) ) {
$insertSql = "INSERT INTO feed_conjugation (content_type_guid, conjugation_phrase, is_target_linked) VALUES ( ?, ?, ?)";
- $gBitDb->query($insertSql, array( $type, $_REQUEST[$type]['conjugation_phrase'], empty($_REQUEST[$type]['is_target_linked'])?'y' : null ) );
+ $gBitDb->query($insertSql, [ $type, $_REQUEST[$type]['conjugation_phrase'], empty($_REQUEST[$type]['is_target_linked'])?'y' : null ] );
}
}
@@ -21,8 +21,6 @@ if( !empty( $_REQUEST['store_feed'] ) ) {
$contentTypes = get_content_types();
$gBitSmarty->assign('contentTypes',$contentTypes);
-
-
function get_content_types(){
global $gBitDb;
$selectSql = "SELECT lct.content_type_guid,conjugation_phrase, is_target_linked FROM liberty_content_types lct LEFT JOIN feed_conjugation fc ON (fc.content_type_guid = lct.content_type_guid)";
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index d61d542..8bb0c18 100755
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -5,7 +5,7 @@ $tables = [
conjugation_phrase C(255) NOTNULL,
feed_icon_url C(255),
is_target_linked C(1)
- "
+ ",
// CONSTRAINT ', CONSTRAINT `feed_conj_content_type_ref` FOREIGN KEY (`content_type_guid`) REFERENCES `".BIT_DB_PREFIX."liberty_content_types` ( `content_type_guid` )'
];