http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100563
Revision: 100563 Author: platonides Date: 2011-10-23 20:57:57 +0000 (Sun, 23 Oct 2011) Log Message: ----------- i18n files don't need defined( 'MEDIAWIKI' ) guards. Modified Paths: -------------- trunk/extensions/ChangeAuthor/ChangeAuthor.i18n.php trunk/extensions/PlayerStatsGrabber/PlayerStatsGrabber.i18n.php trunk/extensions/skins/p2wiki/P2wiki.i18n.php Modified: trunk/extensions/ChangeAuthor/ChangeAuthor.i18n.php =================================================================== --- trunk/extensions/ChangeAuthor/ChangeAuthor.i18n.php 2011-10-23 20:53:50 UTC (rev 100562) +++ trunk/extensions/ChangeAuthor/ChangeAuthor.i18n.php 2011-10-23 20:57:57 UTC (rev 100563) @@ -16,15 +16,6 @@ * For information how to install and use this extension, see the README file. */ -# Alert the user that this is not a valid entry point to MediaWiki if they try to access the extension file directly. -if ( !defined( 'MEDIAWIKI' ) ) { - echo <<<EOT -To install the ChangeAuthor extension, put the following line in LocalSettings.php: -require_once( "\$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php" ); -EOT; - exit( 1 ); -} - $messages = array(); /** English Modified: trunk/extensions/PlayerStatsGrabber/PlayerStatsGrabber.i18n.php =================================================================== --- trunk/extensions/PlayerStatsGrabber/PlayerStatsGrabber.i18n.php 2011-10-23 20:53:50 UTC (rev 100562) +++ trunk/extensions/PlayerStatsGrabber/PlayerStatsGrabber.i18n.php 2011-10-23 20:57:57 UTC (rev 100563) @@ -1,5 +1,5 @@ <?php -if ( !defined( 'MEDIAWIKI' ) ) die(); + $messages = array(); $messages['en'] = array( Modified: trunk/extensions/skins/p2wiki/P2wiki.i18n.php =================================================================== --- trunk/extensions/skins/p2wiki/P2wiki.i18n.php 2011-10-23 20:53:50 UTC (rev 100562) +++ trunk/extensions/skins/p2wiki/P2wiki.i18n.php 2011-10-23 20:57:57 UTC (rev 100563) @@ -7,8 +7,6 @@ * @author Daniel Friesen */ -if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." ); - $messages = array(); /** English _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs