r88872 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88871‎ | r88872 | r88873 >
Date:00:01, 26 May 2011
Author:reedy
Status:deferred
Tags:
Comment:
Followup r88868, name file same as directory for installer niceness
Modified paths:
  • /trunk/extensions/DublinCoreRdf/DublinCore.php (deleted) (history)
  • /trunk/extensions/DublinCoreRdf/DublinCoreRdf.php (added) (history)

Diff [purge]

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
124 + native

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r88868* (bug 29144) Move action=dublincore and action=creativecommons to extensions...reedy23:55, 25 May 2011

Status & tagging log