return wfEscapeHTML( wfLocalUrl( $a, $q ) );
}
+function wfFullUrl( $a, $q = "" ) {
+ global $wgServer;
+ return $wgServer . "/" . wfLocalUrl( $a, $q );
+}
+
+function wfFullUrlE( $a, $q = "" ) {
+ return wfEscapeHTML( wfFullUrl( $a, $q ) );
+}
+
function wfImageUrl( $img )
{
global $wgUploadPath;
$title = htmlspecialchars(
iconv($wgInputEncoding, "utf-8",
str_replace( "_", " ", $row->cur_title ) ) );
- $url = wfLocalUrl( wfUrlencode( $row->cur_title ) );
+ $url = wfFullUrl( wfUrlencode( $row->cur_title ) );
$description = "<description>" . iconv($wgInputEncoding, "utf-8",
htmlspecialchars( $row->cur_comment )) . "</description>";
echo "