* @throws MWException
*/
private function getTextDb( $id ) {
- global $wgContLang;
if ( !isset( $this->db ) ) {
throw new MWException( __METHOD__ . "No database available" );
}
return false;
}
$stripped = str_replace( "\r", "", $text );
- $normalized = $wgContLang->normalize( $stripped );
+ $normalized = MediaWikiServices::getInstance()->getContentLanguage()->
+ normalize( $stripped );
return $normalized;
}
}
private function getTextSpawnedOnce( $id ) {
- global $wgContLang;
-
$ok = fwrite( $this->spawnWrite, "$id\n" );
// $this->progress( ">> $id" );
if ( !$ok ) {
// Do normalization in the dump thread...
$stripped = str_replace( "\r", "", $text );
- $normalized = $wgContLang->normalize( $stripped );
+ $normalized = MediaWikiServices::getInstance()->getContentLanguage()->
+ normalize( $stripped );
return $normalized;
}