r65077 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65076‎ | r65077 | r65078 >
Date:18:47, 15 April 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Rename 'Load' file to have the same name as the parent directory. Update README and Configure accordingly.
Modified paths:
  • /trunk/extensions/AjaxShowEditors/AjaxShowEditors.php (added) (history)
  • /trunk/extensions/AjaxShowEditors/Load.php (deleted) (history)
  • /trunk/extensions/AjaxShowEditors/README (modified) (history)
  • /trunk/extensions/Configure/settings/Settings-ext.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/AjaxShowEditors/Load.php
@@ -1,22 +0,0 @@
2 -<?php
3 -if ( !defined( 'MEDIAWIKI' ) ) die( 1 );
4 -
5 -/** Number of seconds before an user is considered as no more editing */
6 -$wgAjaxShowEditorsTimeout = 60;
7 -
8 -$wgExtensionCredits['other'][] = array(
9 - 'path' => __FILE__,
10 - 'name' => 'Ajax Show Editors',
11 - 'url' => 'http://www.mediawiki.org/wiki/Extension:AjaxShowEditors',
12 - 'author' => 'Ashar Voultoiz',
13 - 'descriptionmsg' => 'ajax-se-desc',
14 -);
15 -
16 -$dir = dirname( __FILE__ ) . '/';
17 -$wgExtensionMessagesFiles['AjaxShowEditors'] = $dir . 'AjaxShowEditors.i18n.php';
18 -
19 -// Load the ajax responder and register it
20 -require_once( $dir . 'Response.php' );
21 -
22 -// Load the hooks
23 -require_once( $dir . 'Hooks.php' );
Index: trunk/extensions/AjaxShowEditors/AjaxShowEditors.php
@@ -0,0 +1,22 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) die( 1 );
 4+
 5+/** Number of seconds before an user is considered as no more editing */
 6+$wgAjaxShowEditorsTimeout = 60;
 7+
 8+$wgExtensionCredits['other'][] = array(
 9+ 'path' => __FILE__,
 10+ 'name' => 'Ajax Show Editors',
 11+ 'url' => 'http://www.mediawiki.org/wiki/Extension:AjaxShowEditors',
 12+ 'author' => 'Ashar Voultoiz',
 13+ 'descriptionmsg' => 'ajax-se-desc',
 14+);
 15+
 16+$dir = dirname( __FILE__ ) . '/';
 17+$wgExtensionMessagesFiles['AjaxShowEditors'] = $dir . 'AjaxShowEditors.i18n.php';
 18+
 19+// Load the ajax responder and register it
 20+require_once( $dir . 'Response.php' );
 21+
 22+// Load the hooks
 23+require_once( $dir . 'Hooks.php' );
Property changes on: trunk/extensions/AjaxShowEditors/AjaxShowEditors.php
___________________________________________________________________
Name: svn:eol-style
124 + native
Name: svn:keywords
225 + LastChangedDate LastChangedRevision
Index: trunk/extensions/AjaxShowEditors/README
@@ -13,6 +13,6 @@
1414
1515 Then you can enable the extension in your LocalSettings.php:
1616
17 - require_once('extensions/AjaxShowEditors/Load.php');
 17+ require_once('extensions/AjaxShowEditors/AjaxShowEditors.php');
1818
1919 Then go edit a page.
Index: trunk/extensions/Configure/settings/Settings-ext.txt
@@ -48,7 +48,6 @@
4949 url = http://www.mediawiki.org/wiki/Extension:AjaxQueryPages
5050
5151 AjaxShowEditors
52 -file = Load.php
5352 settings[] = wgAjaxShowEditorsTimeout: int
5453 schema = true
5554 url = http://www.mediawiki.org/wiki/Extension:AjaxShowEditors

Status & tagging log