r109859 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109858‎ | r109859 | r109860 >
Date:22:31, 23 January 2012
Author:demon
Status:ok
Tags:
Comment:
Remove a couple of unused $wgScripts
Modified paths:
  • /trunk/extensions/Asksql/Asksql_body.php (modified) (history)
  • /trunk/extensions/DeleteBatch/DeleteBatch.body.php (modified) (history)
  • /trunk/extensions/Notificator/Notificator.body.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialDatasearch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DeleteBatch/DeleteBatch.body.php
@@ -87,7 +87,7 @@
8888 * @param $err Mixed: error message or null if there's no error
8989 */
9090 function showForm( $errorMessage = false ) {
91 - global $wgOut, $wgUser, $wgScript;
 91+ global $wgOut, $wgUser;
9292
9393 if ( $errorMessage ) {
9494 $wgOut->setSubtitle( wfMsgHtml( 'formerror' ) );
Index: trunk/extensions/Notificator/Notificator.body.php
@@ -4,7 +4,7 @@
55
66 public static function notificator_Render( $parser, $receiver = '', $receiverLabel = '' ) {
77
8 - global $wgScript, $wgTitle;
 8+ global $wgTitle;
99
1010 if ( !$receiverLabel ) {
1111 $receiverLabel = $receiver;
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialDatasearch.php
@@ -82,8 +82,7 @@
8383 }
8484
8585 function go( $searchText ) {
86 - global
87 - $wgScript, $wgOut;
 86+ global $wgOut;
8887
8988 $expressionMeaningIds = getExpressionMeaningIds( $searchText );
9089
Index: trunk/extensions/Asksql/Asksql_body.php
@@ -82,7 +82,7 @@
8383 }
8484
8585 function doSubmit() {
86 - global $wgOut, $wgUser, $wgServer, $wgScript, $wgLang, $wgContLang;
 86+ global $wgOut, $wgUser, $wgServer, $wgLang, $wgContLang;
8787 global $wgDBserver, $wgDBsqluser, $wgDBsqlpassword, $wgDBname, $wgSqlTimeout;
8888 global $wgDBtype;
8989

Status & tagging log