Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | */ |
188 | 188 | public function addScriptFile( $file ) { |
189 | 189 | global $wgStylePath, $wgStyleVersion; |
190 | | - if( substr( $file, 0, 1 ) == '/' || substr( $file, 0, 7 ) == 'http://' ) { |
| 190 | + if( substr( $file, 0, 1 ) == '/' || preg_match( '#^[a-z]*://#i', $file ) ) { |
191 | 191 | $path = $file; |
192 | 192 | } else { |
193 | 193 | $path = "{$wgStylePath}/common/{$file}"; |