Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1303,8 +1303,12 @@ |
1304 | 1304 | } |
1305 | 1305 | |
1306 | 1306 | /** |
1307 | | - * Expand a potentially local URL to a fully-qualified URL. |
1308 | | - * Assumes $wgServer is correct. :) |
| 1307 | + * Expand a potentially local URL to a fully-qualified URL. Assumes $wgServer |
| 1308 | + * is correct. Also doesn't handle any type of relative URL except one |
| 1309 | + * starting with a single "/": this won't work with current-path-relative URLs |
| 1310 | + * like "subdir/foo.html", protocol-relative URLs like |
| 1311 | + * "//en.wikipedia.org/wiki/", etc. TODO: improve this! |
| 1312 | + * |
1309 | 1313 | * @param $url String: either fully-qualified or a local path + query |
1310 | 1314 | * @return string Fully-qualified URL |
1311 | 1315 | */ |