Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1247,7 +1247,8 @@ |
1248 | 1248 | # If url string starts with http, consider as external URL, else |
1249 | 1249 | # internal |
1250 | 1250 | /*static*/ function makeInternalOrExternalUrl( $name ) { |
1251 | | - if ( preg_match( '/^(?:' . URL_PROTOCOLS . ')/', $name ) ) { |
| 1251 | + global $wgUrlProtcols; |
| 1252 | + if ( preg_match( '/^(?:' . $wgUrlProtcols . ')/', $name ) ) { |
1252 | 1253 | return $name; |
1253 | 1254 | } else { |
1254 | 1255 | return $this->makeUrl( $name ); |