mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Replaced strpos() with simplified realization (#1172)
This commit is contained in:
parent
bb20d523b0
commit
493cd910cf
13 changed files with 24 additions and 24 deletions
|
@ -382,7 +382,7 @@ function attachment_sync_topic($topics)
|
|||
*/
|
||||
function get_extension($filename)
|
||||
{
|
||||
if (false === strpos($filename, '.')) {
|
||||
if (!str_contains($filename, '.')) {
|
||||
return '';
|
||||
}
|
||||
$extension = strrchr(strtolower($filename), '.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue