dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "resourceloader: Simplify load.mock.php by removing includes dependency"
[lhc/web/wiklou.git]
/
includes
/
WebRequest.php
diff --git
a/includes/WebRequest.php
b/includes/WebRequest.php
index
7bfb5a4
..
0a7f416
100644
(file)
--- a/
includes/WebRequest.php
+++ b/
includes/WebRequest.php
@@
-123,9
+123,9
@@
class WebRequest {
if ( !preg_match( '!^https?://!', $url ) ) {
$url = 'http://unused' . $url;
}
if ( !preg_match( '!^https?://!', $url ) ) {
$url = 'http://unused' . $url;
}
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
$a = parse_url( $url );
$a = parse_url( $url );
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
if ( $a ) {
$path = isset( $a['path'] ) ? $a['path'] : '';
if ( $a ) {
$path = isset( $a['path'] ) ? $a['path'] : '';