summaryrefslogtreecommitdiff
path: root/inc/fulltext.php
diff options
context:
space:
mode:
authorKlap-in <klapinklapin@gmail.com>2013-05-21 22:52:10 +0200
committerKlap-in <klapinklapin@gmail.com>2013-05-21 22:52:10 +0200
commit3e7e6067571e660cd835164c22d0973aa6343408 (patch)
treef8fec56e64a37035bab3db67ce39a6c247de7531 /inc/fulltext.php
parent5287f99cf079142a71032cbbfaffbd32a5bd6f3d (diff)
downloadrpg-3e7e6067571e660cd835164c22d0973aa6343408.tar.gz
rpg-3e7e6067571e660cd835164c22d0973aa6343408.tar.bz2
apply media_isexternal
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r--inc/fulltext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php
index 7ee386063..2f073acea 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -172,7 +172,7 @@ function ft_mediause($id,$max){
preg_match_all('/\{\{([^|}]*'.$pcre.'[^|}]*)(|[^}]+)?\}\}/i',rawWiki($doc),$matches);
foreach($matches[1] as $img){
$img = trim($img);
- if(preg_match('/^https?:\/\//i',$img)) continue; // skip external images
+ if(media_isexternal($img)) continue; // skip external images
list($img) = explode('?',$img); // remove any parameters
resolve_mediaid($ns,$img,$exists); // resolve the possibly relative img