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 (parent:
ab86a93
)
Explicitally define $domain
author
Sam Reed
<reedy@users.mediawiki.org>
Mon, 14 Feb 2011 14:09:25 +0000
(14:09 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Mon, 14 Feb 2011 14:09:25 +0000
(14:09 +0000)
Documentation
includes/HttpFunctions.php
patch
|
blob
|
history
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
2d3d8c3
..
7e5bc1f
100644
(file)
--- a/
includes/HttpFunctions.php
+++ b/
includes/HttpFunctions.php
@@
-89,6
+89,7
@@
class Http {
// Check if this domain or any superdomain is listed in $wgConf as a local virtual host
$domainParts = array_reverse( $domainParts );
// Check if this domain or any superdomain is listed in $wgConf as a local virtual host
$domainParts = array_reverse( $domainParts );
+ $domain = '';
for ( $i = 0; $i < count( $domainParts ); $i++ ) {
$domainPart = $domainParts[$i];
if ( $i == 0 ) {
for ( $i = 0; $i < count( $domainParts ); $i++ ) {
$domainPart = $domainParts[$i];
if ( $i == 0 ) {
@@
-198,6
+199,8
@@
class MWHttpRequest {
/**
* Generate a new request object
/**
* Generate a new request object
+ * @param $url String: url to use
+ * @param $options Array: (optional) extra params to pass (see Http::request())
* @see MWHttpRequest::__construct
*/
public static function factory( $url, $options = null ) {
* @see MWHttpRequest::__construct
*/
public static function factory( $url, $options = null ) {