r74162 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74161‎ | r74162 | r74163 >
Date:21:56, 2 October 2010
Author:ashley
Status:reverted
Tags:
Comment:
FBConnect: register_globals is not our friend
Modified paths:
  • /trunk/extensions/FBConnect/PreferencesExtension.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FBConnect/PreferencesExtension.php
@@ -8,6 +8,10 @@
99 * Author: Austin Che <http://openwetware.org/wiki/User:Austin_J._Che>
1010 */
1111
 12+if ( !defined( 'MEDIAWIKI' ) ) {
 13+ die( 'This is not a valid entry point to MediaWiki.' );
 14+}
 15+
1216 $wgExtensionFunctions[] = "wfPreferencesExtension";
1317 $wgExtensionCredits['specialpage'][] = array(
1418 'name' => 'PreferencesExtension',
@@ -28,8 +32,7 @@
2933
3034 // each element of the following should be an array that can have keys:
3135 // name, section, type, size, validate, load, save, html, min, max, default
32 -if (!isset($wgExtensionPreferences))
33 - $wgExtensionPreferences = array();
 36+$wgExtensionPreferences = array();
3437
3538 function wfPreferencesExtension()
3639 {

Status & tagging log