From 0cff90a96119f99fd3d3a14ae09506563335657e Mon Sep 17 00:00:00 2001 From: csteipp Date: Thu, 17 Jan 2013 10:58:13 -0800 Subject: [PATCH] Add guard to Resources.php Prevent direct calling of this file, just as we do in many other places. Resources.php threw a fatal when called directly. Change-Id: I10f5c013e81beaeb48d48e3eeaf1041d7236e9e9 --- resources/Resources.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/Resources.php b/resources/Resources.php index 8a760ac3d4..54b5fc117b 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -20,6 +20,10 @@ * @file */ +if( !defined( 'MEDIAWIKI' ) ) { + die( 'Not an entry point.' ); +} + return array( /* Special modules who have their own classes */ -- 2.20.1