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:
de193b7
)
* Remove unneeded ini_set() from a very long time ago. Can't run this on allow_url_fo...
author
Chad Horohoe
<demon@users.mediawiki.org>
Mon, 29 Sep 2008 06:24:32 +0000
(06:24 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Mon, 29 Sep 2008 06:24:32 +0000
(06:24 +0000)
* Remove extra global declaration.
includes/HttpFunctions.php
patch
|
blob
|
history
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
978509e
..
4efcd9d
100644
(file)
--- a/
includes/HttpFunctions.php
+++ b/
includes/HttpFunctions.php
@@
-94,7
+94,6
@@
class Http {
# Otherwise use file_get_contents...
# This doesn't have local fetch capabilities...
- global $wgVersion;
$headers = array( "User-Agent: MediaWiki/$wgVersion" );
if( strcasecmp( $method, 'post' ) == 0 ) {
// Required for HTTP 1.0 POSTs
@@
-107,9
+106,7
@@
class Http {
'timeout' => $timeout ) );
$ctx = stream_context_create($opts);
- $url_fopen = ini_set( 'allow_url_fopen', 1 );
$text = file_get_contents( $url, false, $ctx );
- ini_set( 'allow_url_fopen', $url_fopen );
}
return $text;
}