require __DIR__ . '/includes/WebStart.php';
# Set action base paths so that WebRequest::getPathInfo()
require __DIR__ . '/includes/WebStart.php';
# Set action base paths so that WebRequest::getPathInfo()
}
if ( $be->fileExists( [ 'src' => $filename ] ) ) {
wfDebugLog( 'img_auth', "Streaming `" . $filename . "`." );
}
if ( $be->fileExists( [ 'src' => $filename ] ) ) {
wfDebugLog( 'img_auth', "Streaming `" . $filename . "`." );
- $be->streamFile( [ 'src' => $filename ],
- [ 'Cache-Control: private', 'Vary: Cookie' ] );
+ $be->streamFile( [
+ 'src' => $filename,
+ 'headers' => [ 'Cache-Control: private', 'Vary: Cookie' ]
+ ] );
if ( !$permissionManager->userCan( 'read', $user, $title ) ) {
wfForbidden( 'img-auth-accessdenied', 'img-auth-noread', $name );
if ( !$permissionManager->userCan( 'read', $user, $title ) ) {
wfForbidden( 'img-auth-accessdenied', 'img-auth-noread', $name );