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:
83fab88
)
follow-up r61836 - allow any URL
author
Mark A. Hershberger
<mah@users.mediawiki.org>
Fri, 26 Feb 2010 02:41:49 +0000
(
02:41
+0000)
committer
Mark A. Hershberger
<mah@users.mediawiki.org>
Fri, 26 Feb 2010 02:41:49 +0000
(
02:41
+0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
0b4a45c
..
4543569
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-186,7
+186,7
@@
class OutputPage {
*/
public function addScriptFile( $file ) {
global $wgStylePath, $wgStyleVersion;
- if( substr( $file, 0, 1 ) == '/' ||
substr( $file, 0, 7 ) == 'http://'
) {
+ if( substr( $file, 0, 1 ) == '/' ||
preg_match( '#^[a-z]*://#i', $file )
) {
$path = $file;
} else {
$path = "{$wgStylePath}/common/{$file}";