X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=22fd4014524b252ffeca73ed61e737f94101588d;hb=63c7b003c4a194f1442697587ba8fe2e8ed431b1;hp=51470b6e6b2a232fd786af2b0a111bf02af61ed3;hpb=812fb5f5bdc07ec203bbb5d1c7ca5350355f7c4b;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index 51470b6e6b..22fd401452 100644 --- a/img_auth.php +++ b/img_auth.php @@ -151,7 +151,7 @@ function wfImageAuthMain() { // Run hook for extension authorization plugins /** @var $result array */ $result = null; - if ( !wfRunHooks( 'ImgAuthBeforeStream', array( &$title, &$path, &$name, &$result ) ) ) { + if ( !Hooks::run( 'ImgAuthBeforeStream', array( &$title, &$path, &$name, &$result ) ) ) { wfForbidden( $result[0], $result[1], array_slice( $result, 2 ) ); return; } @@ -201,7 +201,12 @@ function wfForbidden( $msg1, $msg2 ) { header( 'Cache-Control: no-cache' ); header( 'Content-Type: text/html; charset=utf-8' ); echo << + + +$msgHdr +

$msgHdr

$detailMsg