mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-08 05:51:14 -07:00
'stristr(...)/stripos(...)/strripos(...)' could be replaced with 'strstr(...)/strpos()/strrpos()'.
This commit is contained in:
parent
b4d079ff10
commit
eba06c0e1a
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ function attachment_sync_topic($topics)
|
||||||
*/
|
*/
|
||||||
function get_extension($filename)
|
function get_extension($filename)
|
||||||
{
|
{
|
||||||
if (false === stripos($filename, '.')) {
|
if (false === strstr($filename, '.')) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$extension = strrchr(strtolower($filename), '.');
|
$extension = strrchr(strtolower($filename), '.');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue