Created page with "===GlobalFunctions.php=== Starting line 3369 now reads: <syntaxhighlight lang="php"> function wfAssembleUrl( $urlParts ) { $result = ''; if ( isset( $urlParts['delimiter'] ..."
===GlobalFunctions.php===
Starting line 3369 now reads:
<syntaxhighlight lang="php">
function wfAssembleUrl( $urlParts ) {
$result = '';

if ( isset( $urlParts['delimiter'] ) ) {
if ( isset( $urlParts['scheme'] ) ) {
$result .= $urlParts['scheme'];
}

$result .= $urlParts['delimiter'];
}

if ( isset( $urlParts['host'] ) ) {
if ( isset( $urlParts['user'] ) ) {
$result .= $urlParts['user'];
if ( isset( $urlParts['pass'] ) ) {
$result .= ':' . $urlParts['pass'];
}
$result .= '@';
}

$result .= $urlParts['host'];

if ( isset( $urlParts['port'] ) ) {
$result .= ':' . $urlParts['port'];
}
}

if ( isset( $urlParts['path'] ) ) {
$result .= $urlParts['path'];
}

if ( isset( $urlParts['query'] ) ) {
$result .= '?' . $urlParts['query'];
}

if ( isset( $urlParts['fragment'] ) ) {
$result .= '#' . $urlParts['fragment'];
}

return $result;
}

</syntaxhighlight>