Platonides has uploaded a new change for review.
https://gerrit.wikimedia.org/r/54658
Change subject: wfProfile fixes: 0543c7b0 added a wfProfileIn() that should
have been wfProfileOut() Reorder Http::request() so that wfProfileOut() is at
the same level as the above wfProfileIn() [checked by check-vars]
......................................................................
wfProfile fixes:
0543c7b0 added a wfProfileIn() that should have been wfProfileOut()
Reorder Http::request() so that wfProfileOut() is at the same
level as the above wfProfileIn() [checked by check-vars]
Change-Id: Ia91445d792e524b9c570890397f1513af0d8cd73
---
M includes/HttpFunctions.php
1 file changed, 4 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/58/54658/1
diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php
index 98d36d3..9e280db 100644
--- a/includes/HttpFunctions.php
+++ b/includes/HttpFunctions.php
@@ -69,14 +69,12 @@
$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 @@
}
}
- wfProfileIn( __METHOD__ );
+ wfProfileOut( __METHOD__ );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/54658
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia91445d792e524b9c570890397f1513af0d8cd73
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Platonides <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits