r80713 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80712‎ | r80713 | r80714 >
Date:22:05, 21 January 2011
Author:reedy
Status:ok (Comments)
Tags:
Comment:
Add missing $wgExtensionCredits
Modified paths:
  • /trunk/extensions/Aggregator/Aggregator.php (modified) (history)
  • /trunk/extensions/Citation/Citation.php (modified) (history)
  • /trunk/extensions/CodeBrowse/CodeBrowse.php (modified) (history)
  • /trunk/extensions/FileSearch/FileSearch.php (modified) (history)
  • /trunk/extensions/FootNote/Footnote.php (modified) (history)
  • /trunk/extensions/FormPreloadPostCache/FormPreloadPostCache.php (modified) (history)
  • /trunk/extensions/JIRA/JIRA.php (modified) (history)
  • /trunk/extensions/ListChangedArticles/ListChangedArticles.php (modified) (history)
  • /trunk/extensions/MWBlocker/MWBlockerHook.php (modified) (history)
  • /trunk/extensions/MogileClient/SpecialUploadMogile.php (modified) (history)
  • /trunk/extensions/Multilang/Multilang.php (modified) (history)
  • /trunk/extensions/Preview/Preview.php (modified) (history)
  • /trunk/extensions/PrivateNamespaces/PrivateNamespaces.php (modified) (history)
  • /trunk/extensions/RSSNews/RSSNews.php (modified) (history)
  • /trunk/extensions/SisterSites/SisterSites.php (modified) (history)
  • /trunk/extensions/StaticWiki/StaticWiki.php (modified) (history)
  • /trunk/extensions/TrustedMath/TrustedMath.php (modified) (history)
  • /trunk/extensions/WiktionaryInflection/WiktionaryInflection.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SisterSites/SisterSites.php
@@ -12,6 +12,13 @@
1313 * - lots of things ;)
1414 */
1515
 16+$wgExtensionCredits['other'][] = array(
 17+ 'path' => __FILE__,
 18+ 'name' => 'SisterSites',
 19+ 'author' => '',
 20+ 'url' => 'http://www.mediawiki.org/wiki/Extension:SisterSites',
 21+);
 22+
1623 // This should be in a footer. meh
1724 $wgHooks['BeforePageDisplay'][] = 'wfSisterDisplay';
1825
Index: trunk/extensions/WiktionaryInflection/WiktionaryInflection.php
@@ -1,4 +1,12 @@
22 <?php
 3+
 4+$wgExtensionCredits['parserhooks'][] = array(
 5+ 'path' => __FILE__,
 6+ 'name' => 'WitionaryInflection',
 7+ 'url' => 'http://www.mediawiki.org/wiki/Extension:WitionaryInflection',
 8+ 'author' => '',
 9+);
 10+
311 $wgExtensionFunctions[] = "wfInflectionExtension";
412
513 function wfInflectionExtension() {
Index: trunk/extensions/FootNote/Footnote.php
@@ -34,6 +34,12 @@
3535 die();
3636 }
3737
 38+$wgExtensionCredits['parserhook'][] = array(
 39+ 'path' => __FILE__,
 40+ 'name' => 'Footnote',
 41+ 'author' => '',
 42+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Footnote',
 43+);
3844
3945 $wgExtensionFunctions[] = "wfFootnote";
4046
Index: trunk/extensions/StaticWiki/StaticWiki.php
@@ -16,6 +16,13 @@
1717
1818 if (!defined('MEDIAWIKI')) die();
1919
 20+$wgExtensionCredits['other'][] = array(
 21+ 'path' => __FILE__,
 22+ 'name' => 'StaticWiki',
 23+ 'author' => '',
 24+ 'url' => 'http://www.mediawiki.org/wiki/Extension:StaticWiki',
 25+);
 26+
2027 $wgHooks['AlternateEdit'][] = 'wfStaticEditHook' ;
2128
2229 function wfStaticWikiGetRevisionText ( $url_title , $revision ) {
Index: trunk/extensions/ListChangedArticles/ListChangedArticles.php
@@ -6,6 +6,13 @@
77 exit(1);
88 }
99
 10+$wgExtensionCredits['specialpage '][] = array(
 11+ 'path' => __FILE__,
 12+ 'name' => 'ListChangedArticles',
 13+ 'author' => '',
 14+ 'url' => 'http://www.mediawiki.org/wiki/Extension:ListChangedArticles',
 15+);
 16+
1017 $dir = dirname(__FILE__) . '/';
1118 $wgAutoloadClasses['ListChangedArticles'] = $dir . 'ListChangedArticles_body.php';
1219 $wgSpecialPages['ListChangedArticles'] = 'ListChangedArticles';
Index: trunk/extensions/MogileClient/SpecialUploadMogile.php
@@ -9,6 +9,13 @@
1010 */
1111 require_once( 'MogileFS.php' );
1212
 13+$wgExtensionCredits['specialpage'][] = array(
 14+ 'path' => __FILE__,
 15+ 'name' => 'MogileClient',
 16+ 'author' => '',
 17+ 'url' => 'http://www.mediawiki.org/wiki/Extension:MogileClient',
 18+);
 19+
1320 /**
1421 * Entry point
1522 */
Index: trunk/extensions/RSSNews/RSSNews.php
@@ -3,6 +3,13 @@
44 # Adds news from an RSS feed to your wiki
55 # To use, include this file from your LocalSettings.php
66
 7+$wgExtensionCredits['parserhook'][] = array(
 8+ 'path' => __FILE__,
 9+ 'name' => 'RSSNews',
 10+ 'author' => '',
 11+ 'url' => 'http://www.mediawiki.org/wiki/Extension:RSSNews',
 12+);
 13+
714 $wgExtensionFunctions[] = "wfRSSFeedExtension";
815
916 function wfRSSFeedExtension() {
Index: trunk/extensions/PrivateNamespaces/PrivateNamespaces.php
@@ -48,6 +48,13 @@
4949 *
5050 */
5151
 52+$wgExtensionCredits['other'][] = array(
 53+ 'path' => __FILE__,
 54+ 'name' => 'PrivateNamespaces',
 55+ 'author' => '',
 56+ 'url' => 'http://www.mediawiki.org/wiki/Extension:PrivateNamespaces',
 57+);
 58+
5259 /**
5360 * An array mapping namespace ids to the right needed to view or edit
5461 * pages in the namespace.
Index: trunk/extensions/TrustedMath/TrustedMath.php
@@ -27,6 +27,12 @@
2828
2929 */
3030
 31+$wgExtensionCredits['parserhooks'][] = array(
 32+ 'path' => __FILE__,
 33+ 'name' => 'TrustedMath',
 34+ 'url' => 'http://www.mediawiki.org/wiki/Extension:TrustedMath',
 35+ 'author' => 'Bryan Tong Minh',
 36+);
3137
3238 $dir = dirname( __FILE__ );
3339 $wgAutoloadClasses['TrustedMath'] = "$dir/TrustedMath_body.php";
Index: trunk/extensions/Citation/Citation.php
@@ -3,6 +3,12 @@
44 #
55 # There is a <citation>author=Manske M ||title="The best paper ever" ||journal=''Biochemistry'' ||volume='''5''', 11</citation> citation here!
66
 7+$wgExtensionCredits['parserhooks'][] = array(
 8+ 'path' => __FILE__,
 9+ 'name' => 'Citation',
 10+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Citation',
 11+ 'author' => 'Magnus Manske',
 12+);
713
814 $wgHooks['ParserBeforeTidy'][] = 'citation_hooker';
915 $wgHooks['ParserClearState'][] = 'citation_clear_state';
Index: trunk/extensions/JIRA/JIRA.php
@@ -43,6 +43,13 @@
4444 # is a quick search string, as describe at
4545 # http://www.atlassian.com/software/jira/docs/v3.11/quicksearch.html
4646
 47+$wgExtensionCredits['parserhook'][] = array(
 48+ 'path' => __FILE__,
 49+ 'name' => 'JIRA',
 50+ 'author' => 'River Tarnell',
 51+ 'url' => 'http://www.mediawiki.org/wiki/Extension:JIRA',
 52+);
 53+
4754 $wgExtensionFunctions[] = 'efJIRASetup';
4855
4956 function efJIRASetup() {
Index: trunk/extensions/FileSearch/FileSearch.php
@@ -14,6 +14,13 @@
1515 exit( 1 );
1616 }
1717
 18+$wgExtensionCredits['other'][] = array(
 19+ 'path' => __FILE__,
 20+ 'name' => 'FileSearch',
 21+ 'author' => '',
 22+ 'url' => 'http://www.mediawiki.org/wiki/Extension:FileSearch',
 23+);
 24+
1825 $wgExtensionFunctions[] = 'efFileSearchSetup';
1926 $wgAutoloadClasses['FileSearchIndexer'] = dirname( __FILE__ ) . '/FileSearchIndexer.php';
2027 $wgAutoloadClasses['Extractor'] = dirname( __FILE__ ) . '/extract/Extractor.php';
Index: trunk/extensions/MWBlocker/MWBlockerHook.php
@@ -2,6 +2,13 @@
33
44 require_once( 'MWBlocker.php' );
55
 6+$wgExtensionCredits['other'][] = array(
 7+ 'path' => __FILE__,
 8+ 'name' => 'BlockerHook',
 9+ 'author' => '',
 10+ 'url' => 'http://www.mediawiki.org/wiki/Extension:BlockerHook',
 11+);
 12+
613 $wgExtensionFunctions[] = 'mwBlockerHookSetup';
714
815 function mwBlockerHookSetup() {
Index: trunk/extensions/Multilang/Multilang.php
@@ -10,6 +10,13 @@
1111
1212 if( defined( 'MEDIAWIKI' ) ) {
1313
 14+ $wgExtensionCredits['parserhook'][] = array(
 15+ 'path' => __FILE__,
 16+ 'name' => 'Multilang',
 17+ 'author' => '',
 18+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Multilang',
 19+ );
 20+
1421 $wgAutoloadClasses['Multilang'] = dirname( __FILE__ ) . '/Multilang.class.php';
1522 $wgExtensionFunctions[] = 'efMultilang';
1623
Index: trunk/extensions/CodeBrowse/CodeBrowse.php
@@ -7,6 +7,13 @@
88 * Author: Bryan Tong Minh
99 */
1010
 11+$wgExtensionCredits['specialpage'][] = array(
 12+ 'path' => __FILE__,
 13+ 'name' => 'CodeBrowse',
 14+ 'url' => 'http://www.mediawiki.org/wiki/Extension:CodeBrowse',
 15+ 'author' => 'Bryan Tong Minh',
 16+);
 17+
1118 $dir = dirname( __FILE__ );
1219 $wgAutoloadClasses['CodeBrowseView'] = $dir . '/CodeBrowseView.php';
1320 $wgAutoloadClasses['CodeBrowseItemView'] = $dir . '/CodeBrowseItemView.php';
Index: trunk/extensions/FormPreloadPostCache/FormPreloadPostCache.php
@@ -13,6 +13,13 @@
1414 exit( 1 );
1515 }
1616
 17+$wgExtensionCredits['other'][] = array(
 18+ 'path' => __FILE__,
 19+ 'name' => 'FormPreloadPostCache',
 20+ 'author' => '',
 21+ 'url' => 'http://www.mediawiki.org/wiki/Extension:FormPreloadPostCache',
 22+);
 23+
1724 $wgHooks['OutputPageBeforeHTML'][] = 'FormPreloadPostCache::htmlHook';
1825
1926 class FormPreloadPostCache {
Index: trunk/extensions/Aggregator/Aggregator.php
@@ -6,6 +6,12 @@
77 global $wgAggregatorExpiry;
88 global $wgExtensionFunctions;
99
 10+$wgExtensionCredits['parserhooks'][] = array(
 11+ 'path' => __FILE__,
 12+ 'name' => 'Aggregator',
 13+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Aggregator',
 14+ 'author' => 'Brion Vibber',
 15+);
1016
1117 // Do not poll remote feeds more often than every 30 minutes
1218 $wgAggregatorExpiry = 1800;
Index: trunk/extensions/Preview/Preview.php
@@ -3,6 +3,13 @@
44 if (!defined('MEDIAWIKI'))
55 die;
66
 7+$wgExtensionCredits['specialpage'][] = array(
 8+ 'path' => __FILE__,
 9+ 'name' => 'Preview',
 10+ 'author' => '',
 11+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Preview',
 12+);
 13+
714 $wgSpecialPages['Preview'] = 'SpecialPreview';
815
916 class SpecialPreview extends SpecialPage {

Comments

#Comment by Siebrand (talk | contribs)   23:03, 21 January 2011

Some sloppyness in here. Empty author strings should probably be avoided and commented out.

Status & tagging log