From 4ac9fa081a7c045f6a9f1cfc529d82423f485b2e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 8 Dec 2013 09:55:49 +0100 Subject: Update to MediaWiki 1.22.0 --- img_auth.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'img_auth.php') diff --git a/img_auth.php b/img_auth.php index ccaa8af0..c8759ec8 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; -- cgit v1.2.3-54-g00ecf