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:
6c23414
)
Allow external URLs (e.g. http://bits.wikimedia.org/foo) in OutputPage::addScript()
author
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 2 Feb 2010 00:44:32 +0000
(
00:44
+0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 2 Feb 2010 00:44:32 +0000
(
00:44
+0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
f883a2d
..
a378905
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 ) == '/' ) {
+ if( substr( $file, 0, 1 ) == '/'
|| substr( $file, 0, 7 ) == 'http://'
) {
$path = $file;
} else {
$path = "{$wgStylePath}/common/{$file}";