dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b37db65
)
bugfix: if the upload path is absolute, don't prepend the server URL
author
Erik Moeller
<erik@users.mediawiki.org>
Tue, 28 Jun 2005 05:02:09 +0000
(
05:02
+0000)
committer
Erik Moeller
<erik@users.mediawiki.org>
Tue, 28 Jun 2005 05:02:09 +0000
(
05:02
+0000)
includes/ExternalEdit.php
patch
|
blob
|
history
diff --git
a/includes/ExternalEdit.php
b/includes/ExternalEdit.php
index
d7c14bd
..
e3effe6
100644
(file)
--- a/
includes/ExternalEdit.php
+++ b/
includes/ExternalEdit.php
@@
-50,7
+50,12
@@
class ExternalEdit {
} elseif($this->mMode=="file") {
$type="Edit file";
$image = Image::newFromTitle( $this->mTitle );
- $url = $wgServer . $image->getURL();
+ $img_url = $image->getURL();
+ if(strpos($img_url,"://")) {
+ $url = $img_url;
+ } else {
+ $url = $wgServer . $img_url;
+ }
$extension=substr($name, $pos);
}
$special=$wgLang->getNsText(NS_SPECIAL);