Added early exits when files are used before webstart
authorTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 24 Sep 2010 17:31:40 +0000 (17:31 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 24 Sep 2010 17:31:40 +0000 (17:31 +0000)
includes/ResourceLoader.php
includes/ResourceLoaderContext.php
includes/ResourceLoaderModule.php

index bb958c3..17134d6 100644 (file)
@@ -20,6 +20,8 @@
  * @author Trevor Parscal
  */
 
+defined( 'MEDIAWIKI' ) || die( 1 );
+
 /**
  * Dynamic JavaScript and CSS resource loading system
  */
index c35592f..0de6554 100644 (file)
  * 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
index 8162be7..ae4f586 100644 (file)
@@ -20,6 +20,8 @@
  * @author Roan Kattouw
  */
 
+defined( 'MEDIAWIKI' ) || die( 1 );
+
 /**
  * Abstraction for resource loader modules, with name registration and maxage functionality.
  */