From da50a7fef5e048c49092201841b0bdc0722ba27b Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Fri, 24 Sep 2010 17:31:40 +0000 Subject: [PATCH] Added early exits when files are used before webstart --- includes/ResourceLoader.php | 2 ++ includes/ResourceLoaderContext.php | 3 +++ includes/ResourceLoaderModule.php | 2 ++ 3 files changed, 7 insertions(+) diff --git a/includes/ResourceLoader.php b/includes/ResourceLoader.php index bb958c3879..17134d6e16 100644 --- a/includes/ResourceLoader.php +++ b/includes/ResourceLoader.php @@ -20,6 +20,8 @@ * @author Trevor Parscal */ +defined( 'MEDIAWIKI' ) || die( 1 ); + /** * Dynamic JavaScript and CSS resource loading system */ diff --git a/includes/ResourceLoaderContext.php b/includes/ResourceLoaderContext.php index c35592fe2e..0de6554ba2 100644 --- a/includes/ResourceLoaderContext.php +++ b/includes/ResourceLoaderContext.php @@ -15,10 +15,13 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @author Trevor Parscal * @author Roan Kattouw */ +defined( 'MEDIAWIKI' ) || die( 1 ); + /** * Object passed around to modules which contains information about the state * of a specific loader request diff --git a/includes/ResourceLoaderModule.php b/includes/ResourceLoaderModule.php index 8162be7ffe..ae4f586924 100644 --- a/includes/ResourceLoaderModule.php +++ b/includes/ResourceLoaderModule.php @@ -20,6 +20,8 @@ * @author Roan Kattouw */ +defined( 'MEDIAWIKI' ) || die( 1 ); + /** * Abstraction for resource loader modules, with name registration and maxage functionality. */ -- 2.20.1