From: Timo Tijhof Date: Wed, 31 Oct 2012 21:28:36 +0000 (+0100) Subject: Clean up: Fix trailing comments from I7e22cc3c X-Git-Tag: 1.31.0-rc.0~21734^2 X-Git-Url: http://git.cyclocoop.org/%27%20.%20%24prefix%20.%20Wiki::transformTitleToURI%28%24matches%5B1%5D%29%20.%20%27?a=commitdiff_plain;h=af6a6e34035885301f680bdec5d23bee6fb345d0;p=lhc%2Fweb%2Fwiklou.git Clean up: Fix trailing comments from I7e22cc3c Change-Id: I1d462e44460d9150c19f158ad8323b6d43f399cc --- diff --git a/includes/site/SiteObject.php b/includes/site/SiteObject.php index adb2217e3e..0c6aeb39b8 100644 --- a/includes/site/SiteObject.php +++ b/includes/site/SiteObject.php @@ -162,12 +162,15 @@ class SiteObject extends ORMRow implements Site { $protocol = parse_url( $path, PHP_URL_SCHEME ); - if ( $protocol === false ) { // malformed URL + // Malformed URL + if ( $protocol === false ) { throw new MWException( "failed to parse URL $path" ); } - if ( $protocol === null ) { // no schema - $protocol = ''; // used for protocol relative URLs + // No schema + if ( $protocol === null ) { + // Used for protocol relative URLs + $protocol = ''; } return $protocol;