Addshore added a comment.

Wikibase assumes that the language code in the ParserOptions is valid, but the ParserOptions will happily have whatever language the user provided.

/var/www/mediawiki/extensions/Wikibase/repo/includes/Content/EntityContent.php:272:
object(Language)[652]
  public 'mConverter' => 
    object(FakeConverter)[653]
      public 'mLang' => 
        &object(Language)[652]
  public 'mVariants' => null
  public 'mCode' => string '⧼lang⧽' (length=10)
  public 'mLoaded' => boolean false
  public 'mMagicExtensions' => 
    array (size=0)
      empty
  public 'mMagicHookDone' => boolean false
  private 'mHtmlCode' => null
  private 'mParentLanguage' => boolean false
  public 'dateFormatStrings' => 
    array (size=0)
      empty
  public 'mExtendedSpecialPageAliases' => null
  protected 'namespaceNames' => null
  protected 'mNamespaceIds' => null
  protected 'namespaceAliases' => null
  public 'transformData' => 
    array (size=0)
      empty

The language is used in EntityContent::getParserOutputFromEntityView to construct an EntityParserOutputGenerator


TASK DETAIL
https://phabricator.wikimedia.org/T204791

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
Cc: Addshore, WMDE-leszek, Aklapper, Krinkle, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Jdforrester-WMF, Mbch331, Jay8g, Krenair
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to