From: csteipp Date: Thu, 17 Jan 2013 18:58:13 +0000 (-0800) Subject: Add guard to Resources.php X-Git-Tag: 1.31.0-rc.0~21006^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=0cff90a96119f99fd3d3a14ae09506563335657e;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 */