r42457 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42456‎ | r42457 | r42458 >
Date:08:08, 24 October 2008
Author:siebrand
Status:old
Tags:
Comment:
* update extension credits (merge, add version and i18n for description)
* update some indentation
Modified paths:
  • /trunk/extensions/Drafts/Drafts.i18n.php (modified) (history)
  • /trunk/extensions/Drafts/Drafts.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Drafts/Drafts.i18n.php
@@ -12,6 +12,7 @@
1313 */
1414 $messages['en'] = array(
1515 'drafts' => 'Drafts',
 16+ 'drafts-desc' => 'Adds the ability to save [[Special:Drafts|draft]] versions of a page on the server',
1617 'drafts-view' => 'ViewDraft',
1718 'drafts-view-article' => 'Page',
1819 'drafts-view-existing' => 'Existing drafts',
@@ -21,7 +22,7 @@
2223 'drafts-view-mustlogin' => 'You must $1 to see your drafts.',
2324 'drafts-view-nonesaved' => 'You do not have any drafts saved at this time.',
2425 'drafts-view-notice' => 'You have $1 for this page.',
25 - 'drafts-view-notice-link' => '$1 {{PLURAL:$1|draft|drafts}}',
 26+ 'drafts-view-notice-link' => '$1 {{PLURAL:$1|draft|drafts}}',
2627 'drafts-view-warn' => 'By navigating away from this page you will loose all unsaved changes to this page.
2728 Do you want to continue?',
2829 'drafts-save' => 'Save this as a draft [d]',
Index: trunk/extensions/Drafts/Drafts.php
@@ -2,25 +2,21 @@
33
44 // Check environment
55 if ( !defined( 'MEDIAWIKI' ) ) {
6 - echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" );
7 - die( - 1 );
 6+ echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" );
 7+ die( - 1 );
88 }
99
1010 // Credits
1111 $wgExtensionCredits['other'][] = array(
12 - 'name' => 'Save Drafts',
 12+ 'name' => 'Drafts',
1313 'author' => 'Trevor Parscal',
1414 'url' => 'http://www.mediawiki.org/wiki/Extension:Drafts',
15 - 'description' => 'Allow users to save drafts'
 15+ 'description' => 'Save and view draft versions of pages',
 16+ 'svn-date' => '$LastChangedDate$',
 17+ 'svn-revision' => '$LastChangedRevision$',
 18+ 'description-msg' => 'drafts-desc',
1619 );
1720
18 -$wgExtensionCredits['specialpage'][] = array(
19 - 'name' => 'View Drafts',
20 - 'author' => 'Trevor Parscal',
21 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Drafts',
22 - 'description' => 'Drafts extension page'
23 -);
24 -
2521 /* Configuration */
2622
2723 // Shortcut to this extension directory
@@ -47,7 +43,7 @@
4844
4945 // Register save interception to detect non-javascript draft saving
5046 $wgHooks['EditFilter'][] = 'DraftHooks::interceptSave';
51 -
 47+
5248 // Register article save hook
5349 $wgHooks['ArticleSaveComplete'][] = 'DraftHooks::discard';
5450
@@ -62,7 +58,7 @@
6359
6460 // Register ajax add script hook
6561 $wgHooks['AjaxAddScript'][] = 'DraftHooks::addJS';
66 -
 62+
6763 // Register database operations
6864 $wgHooks['LoadExtensionSchemaUpdates'][] = 'efCheckSchema';
6965
Property changes on: trunk/extensions/Drafts/Drafts.php
___________________________________________________________________
Name: svn:keywords
7066 + LastChangedDate LastChangedRevision

Status & tagging log