Index: trunk/extensions/OggHandler/OggHandler_body.php |
— | — | @@ -705,6 +705,10 @@ |
706 | 706 | 'startOffset' => $offset, |
707 | 707 | 'linkback' => $linkAttribs['href'] |
708 | 708 | ); |
| 709 | + if( $this->file->getRepoName() == 'shared' ){ |
| 710 | + $videoAttr['sharedWiki'] = true; |
| 711 | + } |
| 712 | + |
709 | 713 | if( $wgEnableTemporalOggUrls ) |
710 | 714 | $videoAttr['URLTimeEncoding'] = 'true'; |
711 | 715 | |
— | — | @@ -852,9 +856,9 @@ |
853 | 857 | return false; |
854 | 858 | } |
855 | 859 | $cmd = wfEscapeShellArg( $wgffmpeg2theoraPath ) . ' ' . wfEscapeShellArg ( $path ). ' --info'; |
856 | | - wfProfileIn( 'ffmpeg2theora' ); |
| 860 | + wfProfileIn( __METHOD__ . '/ffmpeg2theora' ); |
857 | 861 | $json_meta_str = wfShellExec( $cmd ); |
858 | | - wfProfileOut( 'ffmpeg2theora' ); |
| 862 | + wfProfileOut( __METHOD__ . '/ffmpeg2theora' ); |
859 | 863 | $objMeta = FormatJson::decode( $json_meta_str ); |
860 | 864 | |
861 | 865 | return $objMeta; |