Site: Explicit allow setLanguageCode( null )
authorFomafix <fomafix@googlemail.com>
Tue, 26 Jun 2018 07:30:39 +0000 (09:30 +0200)
committerFomafix <fomafix@googlemail.com>
Tue, 12 Mar 2019 09:36:52 +0000 (10:36 +0100)
commit43b03675d7562872b61b88949f6f4b89cb5026cd
tree87a5100fd9c25e9015a60669795c81db3462235a
parent79f721948b6fffac4ec4af5f6fed567ecb6dfca0
Site: Explicit allow setLanguageCode( null )

$site->setLanguageCode( null ) is already used in
DBSiteStore::loadSites and this worked because
Language::isValidCode( null ) === true.

This change explicit check for null and allow to set null without
depending on Language::isValidCode( null ) === true.

Change-Id: I0c9fe03cbf1434b0340e61e96360c0aaeb0fe89d
includes/site/Site.php