mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
use needle
git-svn-id: file:///svn/phpbb/trunk@6657 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
52717466fb
commit
dd5f0c320d
1 changed files with 4 additions and 4 deletions
|
@ -127,11 +127,11 @@ if (extension_loaded('mbstring'))
|
|||
|
||||
if (is_null($offset))
|
||||
{
|
||||
return mb_strrpos($str, $search);
|
||||
return mb_strrpos($str, $needle);
|
||||
}
|
||||
else
|
||||
{
|
||||
return mb_strrpos($str, $search, $offset);
|
||||
return mb_strrpos($str, $needle, $offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ if (extension_loaded('mbstring'))
|
|||
return false;
|
||||
}
|
||||
|
||||
return mb_strrpos($str, $search);
|
||||
return mb_strrpos($str, $needle);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -164,7 +164,7 @@ if (extension_loaded('mbstring'))
|
|||
|
||||
$str = mb_substr($str, $offset);
|
||||
|
||||
if (false !== ($pos = mb_strrpos($str, $search)))
|
||||
if (false !== ($pos = mb_strrpos($str, $needle)))
|
||||
{
|
||||
return $pos + $offset;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue