Index: trunk/extensions/WebStore/WebStoreStart.php |
— | — | @@ -0,0 +1,27 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * WebStore startup file |
| 6 | + */ |
| 7 | + |
| 8 | + |
| 9 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 10 | +if ( $IP === false ) { |
| 11 | + $IP = dirname( __FILE__ ) . '/../..'; |
| 12 | +} |
| 13 | +require( "$IP/includes/WebStart.php" ); |
| 14 | + |
| 15 | +if ( !defined( 'MW_WEBSTORE_ENABLED' ) ) { |
| 16 | + echo <<<EOT |
| 17 | +<html><body> |
| 18 | +<p>The WebStore extension is disabled. Enable WebStore by putting:</p> |
| 19 | + |
| 20 | +<pre>require( "\$IP/extensions/WebStore.php" );</pre> |
| 21 | + |
| 22 | +<p>in your LocalSettings.php</p> |
| 23 | +</body></html> |
| 24 | +EOT; |
| 25 | + exit( 1 ); |
| 26 | +} |
| 27 | + |
| 28 | + |
Property changes on: trunk/extensions/WebStore/WebStoreStart.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 29 | + native |