summaryrefslogtreecommitdiff
path: root/app/Http
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-02-24 10:40:23 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-03-02 21:48:20 +0000
commit7d9096f551a87160e703627fcc75e813c92515ab (patch)
treef80ce0c3adb74c50fecb7ffc676e51e2de4981e5 /app/Http
parent5e0441ad8a9e613d0423668ea22f6c3e53ba5a71 (diff)
downloadwebtrees-7d9096f551a87160e703627fcc75e813c92515ab.tar.gz
webtrees-7d9096f551a87160e703627fcc75e813c92515ab.tar.bz2
webtrees-7d9096f551a87160e703627fcc75e813c92515ab.zip
CodeStyle
Diffstat (limited to 'app/Http')
-rw-r--r--app/Http/RequestHandlers/FixLevel0MediaData.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Http/RequestHandlers/FixLevel0MediaData.php b/app/Http/RequestHandlers/FixLevel0MediaData.php
index b9cb40573a..61d2d21d0c 100644
--- a/app/Http/RequestHandlers/FixLevel0MediaData.php
+++ b/app/Http/RequestHandlers/FixLevel0MediaData.php
@@ -80,8 +80,6 @@ class FixLevel0MediaData implements RequestHandlerInterface
'INDI:RESN',
];
- $prefix = DB::prefix();
-
$search = Validator::queryParams($request)->array('search')['value'] ?? '';
$query = DB::table('media')
@@ -101,7 +99,7 @@ class FixLevel0MediaData implements RequestHandlerInterface
->on('individuals.i_file', '=', 'link.l_file')
->on('individuals.i_id', '=', 'link.l_from');
})
- ->where('i_gedcom', 'LIKE', new Expression("('%\n1 OBJE @' || " . $prefix . "media.m_id || '@%')"))
+ ->where('i_gedcom', 'LIKE', new Expression("('%\n1 OBJE @' || " . DB::prefix('media') . ".m_id || '@%')"))
->orderBy('individuals.i_file')
->orderBy('individuals.i_id')
->orderBy('media.m_id')