r94471 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94470‎ | r94471 | r94472 >
Date:19:30, 14 August 2011
Author:reedy
Status:ok
Tags:
Comment:
The height of functionality!

Adding user browser LANGUAGE also

Aren't I good to you?
Modified paths:
  • /trunk/extensions/UserDebugInfo/SpecialUserDebugInfo.php (modified) (history)
  • /trunk/extensions/UserDebugInfo/UserDebugInfo.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UserDebugInfo/UserDebugInfo.i18n.php
@@ -13,6 +13,7 @@
1414 'userdebuginfo-remoteaddr' => 'HTTP remote address',
1515 'userdebuginfo-key' => 'Key',
1616 'userdebuginfo-value' => 'Value',
 17+ 'userdebuginfo-language' => 'Language',
1718 );
1819
1920 /**
Index: trunk/extensions/UserDebugInfo/SpecialUserDebugInfo.php
@@ -34,15 +34,15 @@
3535 }
3636
3737 $this->printRow( 'userdebuginfo-remoteaddr', $_SERVER['REMOTE_ADDR'] );
 38+ $this->printRow( 'userdebuginfo-language', htmlspecialchars( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) );
3839
3940 $wgOut->addHTML( '</tbody>' );
4041 $wgOut->addHTML( '</table>' );
4142 }
4243
4344 /**
44 - * @param $key
45 - * @param $value
46 - * @return void
 45+ * @param $key string Message key to be converted for output
 46+ * @param $value string Text to output
4747 */
4848 private function printRow( $key, $value ) {
4949 global $wgOut;

Status & tagging log