r10230 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10229‎ | r10230 | r10231 >
Date:21:00, 21 July 2005
Author:avar
Status:old
Tags:
Comment:
* URL_PROTOCOLS => $wgUrlProtcols
Modified paths:
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -1247,7 +1247,8 @@
12481248 # If url string starts with http, consider as external URL, else
12491249 # internal
12501250 /*static*/ function makeInternalOrExternalUrl( $name ) {
1251 - if ( preg_match( '/^(?:' . URL_PROTOCOLS . ')/', $name ) ) {
 1251+ global $wgUrlProtcols;
 1252+ if ( preg_match( '/^(?:' . $wgUrlProtcols . ')/', $name ) ) {
12521253 return $name;
12531254 } else {
12541255 return $this->makeUrl( $name );

Status & tagging log