Better function name
This commit is contained in:
parent
1b5fa55bdc
commit
8997361609
2 changed files with 2 additions and 2 deletions
|
@ -723,7 +723,7 @@ class Photo extends BaseObject
|
||||||
* @return boolean
|
* @return boolean
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public static function isLocalLink($name)
|
public static function isLocalPage($name)
|
||||||
{
|
{
|
||||||
$a = \get_app();
|
$a = \get_app();
|
||||||
$base = $a->getBaseURL();
|
$base = $a->getBaseURL();
|
||||||
|
|
|
@ -1115,7 +1115,7 @@ class Transmitter
|
||||||
'/\[url=([^\[\]]*)\]\[img\](.*)\[\/img\]\[\/url\]/Usi',
|
'/\[url=([^\[\]]*)\]\[img\](.*)\[\/img\]\[\/url\]/Usi',
|
||||||
function ($match) {
|
function ($match) {
|
||||||
// We remove the link when it is a link to a local photo page
|
// We remove the link when it is a link to a local photo page
|
||||||
if (Photo::isLocalLink($match[1])) {
|
if (Photo::isLocalPage($match[1])) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
// otherwise we just return the link
|
// otherwise we just return the link
|
||||||
|
|
Loading…
Reference in a new issue