Index: trunk/phase3/includes/ExternalEdit.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | function edit() { |
35 | | - global $wgUser, $wgOut, $wgScript, $wgServer; |
| 35 | + global $wgUser, $wgOut, $wgScript, $wgScriptPath, $wgServer; |
36 | 36 | $wgOut->disable(); |
37 | 37 | $name=$this->mTitle->getText(); |
38 | 38 | $pos=strrpos($name,".")+1; |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | } elseif($this->mMode=="file") { |
47 | 47 | $type="Edit file"; |
48 | 48 | $url = Image::newFromTitle( $this->mTitle ); |
49 | | - $url = $url->url; # php sucks |
| 49 | + $url = $wgServer . $url->url; # php sucks |
50 | 50 | |
51 | 51 | $extension=substr($name, $pos); |
52 | 52 | } |
— | — | @@ -54,6 +54,8 @@ |
55 | 55 | Type=$type |
56 | 56 | Engine=MediaWiki |
57 | 57 | Script={$wgServer}{$wgScript} |
| 58 | +Server={$wgServer} |
| 59 | +Path={$wgScriptPath} |
58 | 60 | |
59 | 61 | [File] |
60 | 62 | Extension=$extension |