dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed remaining profile calls
[lhc/web/wiklou.git]
/
includes
/
StreamFile.php
diff --git
a/includes/StreamFile.php
b/includes/StreamFile.php
index
2503150
..
a52b25b
100644
(file)
--- a/
includes/StreamFile.php
+++ b/
includes/StreamFile.php
@@
-39,10
+39,8
@@
class StreamFile {
* @return bool Success
*/
public static function stream( $fname, $headers = array(), $sendErrors = true ) {
* @return bool Success
*/
public static function stream( $fname, $headers = array(), $sendErrors = true ) {
- wfProfileIn( __METHOD__ );
if ( FileBackend::isStoragePath( $fname ) ) { // sanity
if ( FileBackend::isStoragePath( $fname ) ) { // sanity
- wfProfileOut( __METHOD__ );
throw new MWException( __FUNCTION__ . " given storage path '$fname'." );
}
throw new MWException( __FUNCTION__ . " given storage path '$fname'." );
}
@@
-54,14
+52,11
@@
class StreamFile {
if ( $res == self::NOT_MODIFIED ) {
$ok = true; // use client cache
} elseif ( $res == self::READY_STREAM ) {
if ( $res == self::NOT_MODIFIED ) {
$ok = true; // use client cache
} elseif ( $res == self::READY_STREAM ) {
- wfProfileIn( __METHOD__ . '-send' );
$ok = readfile( $fname );
$ok = readfile( $fname );
- wfProfileOut( __METHOD__ . '-send' );
} else {
$ok = false; // failed
}
} else {
$ok = false; // failed
}
- wfProfileOut( __METHOD__ );
return $ok;
}
return $ok;
}