r26483 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26482‎ | r26483 | r26484 >
Date:16:49, 7 October 2007
Author:aaron
Status:old
Tags:
Comment:
*Add credits
*Remove extensionfunctions dependency
Modified paths:
  • /trunk/extensions/DismissableSiteNotice/DismissableSiteNotice.php (modified) (history)
  • /trunk/extensions/FindSpam/FindSpam.php (modified) (history)
  • /trunk/extensions/UserRightsNotif/UserRightsNotif.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FindSpam/FindSpam.php
@@ -12,8 +12,12 @@
1313 $wgAvailableRights[] = 'findspam';
1414 $wgGroupPermissions['sysop']['findspam'] = true;
1515
16 -if ( !function_exists( 'extAddSpecialPage' ) ) {
17 - require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
18 -}
19 -extAddSpecialPage( dirname(__FILE__) . '/FindSpam_body.php', 'FindSpam', 'FindSpamPage' );
 16+$wgSpecialPages['FindSpam'] = 'FindSpamPage';
 17+$wgAutoloadClasses['FindSpamPage'] = dirname(__FILE__) . '/FindSpam_body.php';
 18+
 19+$wgExtensionCredits['specialpage'][] = array(
 20+ 'name' => 'FindSpam',
 21+ 'author' => 'Tim Starling',
 22+ 'description' => 'Adds a special page that allows to find recently added spam.'
 23+);
2024
Index: trunk/extensions/UserRightsNotif/UserRightsNotif.php
@@ -15,7 +15,7 @@
1616 $wgExtensionFunctions[] = 'efUserRightsNotifierSetup';
1717 $wgExtensionCredits['other'][] = array(
1818 'name' => 'User Rights Email Notification',
19 - 'url' => 'http://meta.wikimedia.org/wiki/User_Rights_Email_Notification',
 19+ 'url' => 'http://www.mediawiki.org/wiki/Extension:User_Rights_Email_Notification',
2020 'author' => 'Rob Church',
2121 'desc' => 'Sends email notification to users upon rights changes',
2222 );
Index: trunk/extensions/DismissableSiteNotice/DismissableSiteNotice.php
@@ -1,4 +1,11 @@
22 <?php
 3+
 4+$wgExtensionCredits['other'][] = array(
 5+ 'name' => 'DismissableSiteNotice',
 6+ 'author' => 'Brion Vibber',
 7+ 'description' => 'Allows users to close the sitenotice.'
 8+);
 9+
310 function wfDismissableSiteNotice( &$notice ) {
411 global $wgMajorSiteNoticeID, $wgUser;
512

Status & tagging log