Index: trunk/extensions/FBConnect/PreferencesExtension.php |
— | — | @@ -8,6 +8,10 @@ |
9 | 9 | * Author: Austin Che <http://openwetware.org/wiki/User:Austin_J._Che> |
10 | 10 | */ |
11 | 11 | |
| 12 | +if ( !defined( 'MEDIAWIKI' ) ) { |
| 13 | + die( 'This is not a valid entry point to MediaWiki.' ); |
| 14 | +} |
| 15 | + |
12 | 16 | $wgExtensionFunctions[] = "wfPreferencesExtension"; |
13 | 17 | $wgExtensionCredits['specialpage'][] = array( |
14 | 18 | 'name' => 'PreferencesExtension', |
— | — | @@ -28,8 +32,7 @@ |
29 | 33 | |
30 | 34 | // each element of the following should be an array that can have keys: |
31 | 35 | // name, section, type, size, validate, load, save, html, min, max, default |
32 | | -if (!isset($wgExtensionPreferences)) |
33 | | - $wgExtensionPreferences = array(); |
| 36 | +$wgExtensionPreferences = array(); |
34 | 37 | |
35 | 38 | function wfPreferencesExtension() |
36 | 39 | { |