Index: trunk/extensions/DublinCoreRdf/DublinCore.php |
— | — | @@ -1,22 +0,0 @@ |
2 | | -<?php |
3 | | - |
4 | | -$wgExtensionCredits['other'][] = array( |
5 | | - 'path' => __FILE__, |
6 | | - 'name' => 'DublinCore', |
7 | | - 'url' => '', |
8 | | - 'author' => 'Evan Prodromou', |
9 | | -); |
10 | | - |
11 | | -$wgHooks['MediaWikiPerformAction'][] = 'efDublinCorePreformAction'; |
12 | | - |
13 | | -$wgAutoloadClasses['DublinCoreRdf'] = $dir . 'DublinCoreRdf_body.php'; |
14 | | - |
15 | | -function efDublinCorePreformAction( $output, $article, $title, $user, $request, $mediaWiki ) { |
16 | | - if ( $mediaWiki->getAction() !== 'dublincore' ) { |
17 | | - return true; |
18 | | - } |
19 | | - |
20 | | - $rdf = new DublinCoreRdf( $article ); |
21 | | - $rdf->show(); |
22 | | - return false; |
23 | | -} |
\ No newline at end of file |
Index: trunk/extensions/DublinCoreRdf/DublinCoreRdf.php |
— | — | @@ -0,0 +1,22 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +$wgExtensionCredits['other'][] = array( |
| 5 | + 'path' => __FILE__, |
| 6 | + 'name' => 'DublinCore', |
| 7 | + 'url' => '', |
| 8 | + 'author' => 'Evan Prodromou', |
| 9 | +); |
| 10 | + |
| 11 | +$wgHooks['MediaWikiPerformAction'][] = 'efDublinCorePreformAction'; |
| 12 | + |
| 13 | +$wgAutoloadClasses['DublinCoreRdf'] = $dir . 'DublinCoreRdf_body.php'; |
| 14 | + |
| 15 | +function efDublinCorePreformAction( $output, $article, $title, $user, $request, $mediaWiki ) { |
| 16 | + if ( $mediaWiki->getAction() !== 'dublincore' ) { |
| 17 | + return true; |
| 18 | + } |
| 19 | + |
| 20 | + $rdf = new DublinCoreRdf( $article ); |
| 21 | + $rdf->show(); |
| 22 | + return false; |
| 23 | +} |
\ No newline at end of file |
Property changes on: trunk/extensions/DublinCoreRdf/DublinCoreRdf.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 24 | + native |