dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
5131bba
)
Merge "wfProfile fixes: 0543c7b0 added a wfProfileIn() that should have been wfProfi...
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Tue, 19 Mar 2013 17:01:59 +0000
(17:01 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 19 Mar 2013 17:01:59 +0000
(17:01 +0000)
includes/HttpFunctions.php
patch
|
blob
|
history
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
98d36d3
..
9e280db
100644
(file)
--- a/
includes/HttpFunctions.php
+++ b/
includes/HttpFunctions.php
@@
-69,14
+69,12
@@
class Http {
$req = MWHttpRequest::factory( $url, $options );
$status = $req->execute();
+ $content = false;
if ( $status->isOK() ) {
$content = $req->getContent();
- wfProfileOut( __METHOD__ . "-$method" );
- return $content;
- } else {
- wfProfileOut( __METHOD__ . "-$method" );
- return false;
}
+ wfProfileOut( __METHOD__ . "-$method" );
+ return $content;
}
/**
@@
-629,7
+627,7
@@
class MWHttpRequest {
}
}
- wfProfile
In
( __METHOD__ );
+ wfProfile
Out
( __METHOD__ );
}
/**