summaryrefslogtreecommitdiff
path: root/inc/parser/handler.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-06-16 12:36:58 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-06-16 12:36:58 -0700
commit06f8cfbed961eb9394fa29558dd29c79f87fc9ad (patch)
tree20b02ae07d943248a0a01191409cd02120e5fcb3 /inc/parser/handler.php
parentd6b7a2dd189b692f9a754f4f1a330abe6449669a (diff)
parentb9ee6a44e7499b5c2e9f117096cedc769ef2e25d (diff)
downloadrpg-06f8cfbed961eb9394fa29558dd29c79f87fc9ad.tar.gz
rpg-06f8cfbed961eb9394fa29558dd29c79f87fc9ad.tar.bz2
Merge pull request #225 from splitbrain/fetchftp
Add media_isexternal
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r--inc/parser/handler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php
index 55b715ad9..1cf32aaed 100644
--- a/inc/parser/handler.php
+++ b/inc/parser/handler.php
@@ -680,7 +680,7 @@ function Doku_Handler_Parse_Media($match) {
}
// Check whether this is a local or remote image
- if ( preg_match('#^(https?|ftp)#i',$src) ) {
+ if ( media_isexternal($src) ) {
$call = 'externalmedia';
} else {
$call = 'internalmedia';