r24811 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24810‎ | r24811 | r24812 >
Date:10:55, 15 August 2007
Author:tstarling
Status:old
Tags:
Comment:
switching to standard extension file structure
Modified paths:
  • /trunk/extensions/OggHandler/OggHandler.php (added) (history)
  • /trunk/extensions/OggHandler/OggHandler.php (added) (history)
  • /trunk/extensions/OggHandler/ext.php (deleted) (history)

Diff [purge]

Index: trunk/extensions/OggHandler/ext.php
@@ -1,18 +0,0 @@
2 -<?php
3 -
4 -$oggDir = dirname(__FILE__);
5 -$wgAutoloadClasses['OggHandler'] = "$oggDir/OggHandler_body.php";
6 -$wgMediaHandlers['application/ogg'] = 'OggHandler';
7 -if ( !in_array( 'ogg', $wgFileExtensions ) ) {
8 - $wgFileExtensions[] = 'ogg';
9 -}
10 -ini_set( 'include_path',
11 - "$oggDir/PEAR/File_Ogg" .
12 - PATH_SEPARATOR .
13 - ini_get( 'include_path' ) );
14 -
15 -$wgFFmpegLocation = 'ffmpeg';
16 -$wgExtensionMessagesFiles['OggHandler'] = "$oggDir/OggHandler.i18n.php";
17 -$wgParserOutputHooks['OggHandler'] = array( 'OggHandler', 'outputHook' );
18 -
19 -?>
Index: trunk/extensions/OggHandler/OggHandler.php
@@ -0,0 +1,18 @@
 2+<?php
 3+
 4+$oggDir = dirname(__FILE__);
 5+$wgAutoloadClasses['OggHandler'] = "$oggDir/OggHandler_body.php";
 6+$wgMediaHandlers['application/ogg'] = 'OggHandler';
 7+if ( !in_array( 'ogg', $wgFileExtensions ) ) {
 8+ $wgFileExtensions[] = 'ogg';
 9+}
 10+ini_set( 'include_path',
 11+ "$oggDir/PEAR/File_Ogg" .
 12+ PATH_SEPARATOR .
 13+ ini_get( 'include_path' ) );
 14+
 15+$wgFFmpegLocation = 'ffmpeg';
 16+$wgExtensionMessagesFiles['OggHandler'] = "$oggDir/OggHandler.i18n.php";
 17+$wgParserOutputHooks['OggHandler'] = array( 'OggHandler', 'outputHook' );
 18+
 19+?>
Property changes on: trunk/extensions/OggHandler/OggHandler.php
___________________________________________________________________
Added: svn:eol-style
120 + native

Status & tagging log