r87926 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87925‎ | r87926 | r87927 >
Date:19:57, 12 May 2011
Author:hartman
Status:deferred
Tags:
Comment:
Forwardport r81952 from OggHandler to TimedMediaHandler
Modified paths:
  • /trunk/extensions/TimedMediaHandler/handlers/OggHandler/OggHandler.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TimedMediaHandler/handlers/OggHandler/OggHandler.php
@@ -96,7 +96,7 @@
9797 foreach ( $metadata['streams'] as $stream ) {
9898 $streamTypes[] = $stream['type'];
9999 }
100 - return $streamTypes;
 100+ return array_unique( $streamTypes );
101101 }
102102
103103 function getOffset( $file ){

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r81952Followup r81950: array_keys() had a purpose: to remove dupes. Use array_uniqu...demon10:11, 11 February 2011

Status & tagging log