http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100146

Revision: 100146
Author:   johnduhart
Date:     2011-10-18 19:33:56 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
Follow up to r100103, us wfParseUrl instead of parse_url

Modified Paths:
--------------
    trunk/extensions/Video/VideoClass.php

Modified: trunk/extensions/Video/VideoClass.php
===================================================================
--- trunk/extensions/Video/VideoClass.php       2011-10-18 19:31:51 UTC (rev 
100145)
+++ trunk/extensions/Video/VideoClass.php       2011-10-18 19:33:56 UTC (rev 
100146)
@@ -526,7 +526,8 @@
         *                 it out
         */
        public static function getProviderByURL( $url ) {
-               $host = parse_url( $url, PHP_URL_HOST );
+               $host = wfParseUrl( $url );
+               $host = $host['host'];
 
                self::getDomainsForProviders();
                foreach ( self::$providerDomains as $domain => $provider ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to