X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=img_auth.php;h=c8759ec82aa54c4e1e0e80ef740b074e5a138ad7;hb=03c79c4fdcad3cae6cdd420b2aad5f9d52bcb2b0;hp=ccaa8af0fcf1dcb7d141f6a77c06c7774ae17a06;hpb=782d2468396ac9f71897325a16d82a7dec83db8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index ccaa8af0fc..c8759ec82a 100644 --- a/img_auth.php +++ b/img_auth.php @@ -40,11 +40,7 @@ */ define( 'MW_NO_OUTPUT_COMPRESSION', 1 ); -if ( isset( $_SERVER['MW_COMPILED'] ) ) { - require ( 'core/includes/WebStart.php' ); -} else { - require ( __DIR__ . '/includes/WebStart.php' ); -} +require __DIR__ . '/includes/WebStart.php'; wfProfileIn( 'img_auth.php' ); # Set action base paths so that WebRequest::getPathInfo() @@ -117,6 +113,8 @@ function wfImageAuthMain() { } // Run hook for extension authorization plugins + /** @var $result array */ + $result = null; if ( !wfRunHooks( 'ImgAuthBeforeStream', array( &$title, &$path, &$name, &$result ) ) ) { wfForbidden( $result[0], $result[1], array_slice( $result, 2 ) ); return;