Fix handling of prot-rel URLs in SiteObject.
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 31 Oct 2012 19:16:36 +0000 (20:16 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Wed, 31 Oct 2012 19:16:36 +0000 (20:16 +0100)
commit4b436b70212bc301b271ffc47367d1cbc1ad9305
treed477a3c4ae0673d1192aa47db33df8cc36ab6c7a
parent8eb98ba47bc5d55a9d9f7718c6083d4d58aded0e
Fix handling of prot-rel URLs in SiteObject.

Previously, getProtocol() would return null for a protocol relative URL,
but the database field sites_protocol does not allow null as a value.
Changed getProtocol() to return an empty string instead.

Change-Id: I7e22cc3c3d8dca17a28fc4627083d5d2cb253887
includes/site/SiteObject.php