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
$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;
}
/**
}
}
- wfProfileIn( __METHOD__ );
+ wfProfileOut( __METHOD__ );
}
/**