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
Merge "Use english messages for background use of Status::getWikiText"
[lhc/web/wiklou.git]
/
includes
/
StreamFile.php
diff --git
a/includes/StreamFile.php
b/includes/StreamFile.php
index
3f73ae3
..
8d0b8f1
100644
(file)
--- a/
includes/StreamFile.php
+++ b/
includes/StreamFile.php
@@
-38,7
+38,7
@@
class StreamFile {
* @throws MWException
* @return bool Success
*/
* @throws MWException
* @return bool Success
*/
- public static function stream( $fname, $headers =
array()
, $sendErrors = true ) {
+ public static function stream( $fname, $headers =
[]
, $sendErrors = true ) {
if ( FileBackend::isStoragePath( $fname ) ) { // sanity
throw new MWException( __FUNCTION__ . " given storage path '$fname'." );
if ( FileBackend::isStoragePath( $fname ) ) { // sanity
throw new MWException( __FUNCTION__ . " given storage path '$fname'." );
@@
-74,7
+74,7
@@
class StreamFile {
* @return int|bool READY_STREAM, NOT_MODIFIED, or false on failure
*/
public static function prepareForStream(
* @return int|bool READY_STREAM, NOT_MODIFIED, or false on failure
*/
public static function prepareForStream(
- $path, $info, $headers =
array()
, $sendErrors = true
+ $path, $info, $headers =
[]
, $sendErrors = true
) {
if ( !is_array( $info ) ) {
if ( $sendErrors ) {
) {
if ( !is_array( $info ) ) {
if ( $sendErrors ) {