This prevented message updates by Raymond from translatewiki.net.
Reported issues:
* Warning: in_array() expects parameter 2 to be array, null given in maintenance\language\languages.inc on line 173
* Warning: in_array() expects parameter 2 to be array, null given in maintenance\language\languages.inc on line 175
* Warning: in_array(): Wrong datatype for second argument in phase3\maintenance\language\languages.inc on line 175
/** Outputs WikiText */
class wikiStatsOutput extends statsOutput {
function heading() {
+ global $IP;
$version = SpecialVersion::getVersion( 'nodb' );
echo "'''Statistics are based on:''' <code>" . $version . "</code>\n\n";
echo "'''Note:''' These statistics can be generated by running <code>php maintenance/language/transstat.php</code>.\n\n";
$blue = '00';
$color = $red . $green . $blue;
- $percent = parent::formatPercent( $subset, $total, $revert, $accuracy );
+ $percent = statsOutput::formatPercent( $subset, $total, $revert, $accuracy );
return 'bgcolor="#' . $color . '"|' . $percent;
}
}
* @return The checks results as wiki text.
*/
function outputWiki() {
- global $wgContLang;
+ global $wgContLang, $IP;
$detailText = '';
$rows[] = '! Language !! Code !! Total !! ' . implode( ' !! ', array_diff( $this->checks, $this->nonMessageChecks() ) );
foreach ( $this->results as $code => $results ) {
$foo = "wgAllMessages$languageCode";
global $$foo;
+ global $wgSkinNamesEn; // potentially unused global declaration?
// it might already be loaded in LocalSettings.php
if ( !isset( $$foo ) ) {
}
public function execute() {
- global $wgVersion;
$messages = array();
foreach ( array_keys( Language::getMessagesFor( 'en' ) ) as $key ) {
$messages[$key] = wfMsg( $key );
*/
function __construct( $exif = true ) {
require( dirname(__FILE__) . '/messageTypes.inc' );
-
- global $wgIgnoredMessages, $wgOptionalMessages, $wgEXIFMessages;
-
$this->mIgnoredMessages = $wgIgnoredMessages;
if ( $exif ) {
$this->mOptionalMessages = array_merge( $wgOptionalMessages );
# Load messages
$dir = $prefix ? $prefix : dirname( __FILE__ );
- global $wgMessageStructure, $wgBlockComments, $wgIgnoredMessages, $wgOptionalMessages;
-
require( $dir . '/messages.inc' );
self::$messageStructure = $wgMessageStructure;
self::$blockComments = $wgBlockComments;