r100146 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100145‎ | r100146 | r100147 >
Date:19:33, 18 October 2011
Author:johnduhart
Status:deferred
Tags:
Comment:
Follow up to r100103, us wfParseUrl instead of parse_url
Modified paths:
  • /trunk/extensions/Video/VideoClass.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Video/VideoClass.php
@@ -526,7 +526,8 @@
527527 * it out
528528 */
529529 public static function getProviderByURL( $url ) {
530 - $host = parse_url( $url, PHP_URL_HOST );
 530+ $host = wfParseUrl( $url );
 531+ $host = $host['host'];
531532
532533 self::getDomainsForProviders();
533534 foreach ( self::$providerDomains as $domain => $provider ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100103Major refactor to Video extension. Code for Video providers is less repetitive....johnduhart00:41, 18 October 2011

Status & tagging log