X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=22fd4014524b252ffeca73ed61e737f94101588d;hb=63c7b003c4a194f1442697587ba8fe2e8ed431b1;hp=dcd171f94ed328c0abf445feecd6afe738d43c0b;hpb=ca28853e225fb8c3a2715c6f5bcc558d9e482590;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index dcd171f94e..22fd401452 100644 --- a/img_auth.php +++ b/img_auth.php @@ -39,7 +39,6 @@ define( 'MW_NO_OUTPUT_COMPRESSION', 1 ); require __DIR__ . '/includes/WebStart.php'; -wfProfileIn( 'img_auth.php' ); # Set action base paths so that WebRequest::getPathInfo() # recognizes the "X" as the 'title' in ../img_auth.php/X urls. @@ -47,7 +46,6 @@ $wgArticlePath = false; # Don't let a "/*" article path clober our action path $wgActionPaths = array( "$wgUploadPath/" ); wfImageAuthMain(); -wfProfileOut( 'img_auth.php' ); wfLogProfilingData(); // Commit and close up! $factory = wfGetLBFactory(); @@ -153,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; } @@ -203,7 +201,12 @@ function wfForbidden( $msg1, $msg2 ) { header( 'Cache-Control: no-cache' ); header( 'Content-Type: text/html; charset=utf-8' ); echo << + + +$msgHdr +

$msgHdr

$detailMsg