Follow-up r93258, r93266, r93266: Move the defines to Defines.php
authorPlatonides <platonides@users.mediawiki.org>
Wed, 3 Aug 2011 18:25:04 +0000 (18:25 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 3 Aug 2011 18:25:04 +0000 (18:25 +0000)
includes/Defines.php
includes/GlobalFunctions.php

index 0252c40..2d7e540 100644 (file)
@@ -240,3 +240,12 @@ define( 'APCOND_AGE_FROM_EDIT', 7 );
 define( 'APCOND_BLOCKED', 8 );
 define( 'APCOND_ISBOT', 9 );
 /**@}*/
+
+/**
+ * Protocol constants for wfExpandUrl()
+ */
+define( 'PROTO_HTTP', 'http://' );
+define( 'PROTO_HTTPS', 'https://' );
+define( 'PROTO_RELATIVE', '//' );
+define( 'PROTO_CURRENT', null );
+
index b884a89..98a1ea7 100644 (file)
@@ -428,11 +428,6 @@ function wfAppendQuery( $url, $query ) {
        return $url;
 }
 
-define( 'PROTO_HTTP', 'http://' );
-define( 'PROTO_HTTPS', 'https://' );
-define( 'PROTO_RELATIVE', '//' );
-define( 'PROTO_CURRENT', null );
-
 /**
  * Expand a potentially local URL to a fully-qualified URL.  Assumes $wgServer
  * is correct.