TheDJ has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/316068

Change subject: Repair text track attributes
......................................................................

Repair text track attributes

This was broken in I4227b88ae94e3cfcfd62fb7fe221190d7fe33f71

Relates to bug: T122737

Change-Id: I6498c32929892454700e852d412056a5acc2453a
---
M TimedMediaTransformOutput.php
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TimedMediaHandler 
refs/changes/68/316068/1

diff --git a/TimedMediaTransformOutput.php b/TimedMediaTransformOutput.php
index b15ed68..215754d 100644
--- a/TimedMediaTransformOutput.php
+++ b/TimedMediaTransformOutput.php
@@ -334,11 +334,11 @@
                foreach ( $mediaTracks as &$track ) {
                        foreach ( $track as $attr => $val ) {
                                if ( $attr === 'title' || $attr === 'provider' 
) {
-                                       $source[ 'data-mw' . $attr ] = $val;
-                                       unset( $source[ $attr ] );
+                                       $track[ 'data-mw' . $attr ] = $val;
+                                       unset( $track[ $attr ] );
                                } elseif ( $attr === 'dir' ) {
-                                       $source[ 'data-' . $attr ] = $val;
-                                       unset( $source[ $attr ] );
+                                       $track[ 'data-' . $attr ] = $val;
+                                       unset( $track[ $attr ] );
                                }
                        }
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/316068
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6498c32929892454700e852d412056a5acc2453a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TimedMediaHandler
Gerrit-Branch: master
Gerrit-Owner: TheDJ <hartman.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to