diff --git a/includes/WebRequestUpload.php b/includes/WebRequestUpload.php index c2d08b87fa4..d3d2c79ad79 100644 --- a/includes/WebRequestUpload.php +++ b/includes/WebRequestUpload.php @@ -128,10 +128,7 @@ class WebRequestUpload { } $contentLength = $this->request->getHeader( 'Content-Length' ); - $maxPostSize = wfShorthandToInteger( - ini_get( 'post_max_size' ) ?: ini_get( 'hhvm.server.max_post_size' ), - 0 - ); + $maxPostSize = wfShorthandToInteger( ini_get( 'post_max_size' ), 0 ); if ( $maxPostSize && $contentLength > $maxPostSize ) { # post_max_size is exceeded