X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=img_auth.php;h=c8759ec82aa54c4e1e0e80ef740b074e5a138ad7;hb=6006a8895bc113f3bf5535b8800ee0945bcd8834;hp=667a40a5a89f6dc37e2bc7c5cdb598db086436f1;hpb=83828c210c5a3ae4f056d2799912035ce74c2f83;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index 667a40a5a8..c8759ec82a 100644 --- a/img_auth.php +++ b/img_auth.php @@ -40,7 +40,7 @@ */ define( 'MW_NO_OUTPUT_COMPRESSION', 1 ); -require ( __DIR__ . '/includes/WebStart.php' ); +require __DIR__ . '/includes/WebStart.php'; wfProfileIn( 'img_auth.php' ); # Set action base paths so that WebRequest::getPathInfo() @@ -113,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;