Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -195,6 +195,7 @@ |
196 | 196 | */ |
197 | 197 | public function addScriptFile( $file, $version = null ) { |
198 | 198 | global $wgStylePath, $wgStyleVersion; |
| 199 | + // See if $file parameter is an absolute URL or begins with a slash |
199 | 200 | if( substr( $file, 0, 1 ) == '/' || preg_match( '#^[a-z]*://#i', $file ) ) { |
200 | 201 | $path = $file; |
201 | 202 | } else { |