dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ff38b
)
Clean up: Fix trailing comments from I7e22cc3c
author
Timo Tijhof
<ttijhof@wikimedia.org>
Wed, 31 Oct 2012 21:28:36 +0000
(22:28 +0100)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Mon, 5 Nov 2012 04:15:34 +0000
(
04:15
+0000)
Change-Id: I1d462e44460d9150c19f158ad8323b6d43f399cc
includes/site/SiteObject.php
patch
|
blob
|
history
diff --git
a/includes/site/SiteObject.php
b/includes/site/SiteObject.php
index
adb2217
..
0c6aeb3
100644
(file)
--- 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;