r58693 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58692‎ | r58693 | r58694 >
Date:09:33, 7 November 2009
Author:btongminh
Status:ok (Comments)
Tags:
Comment:
Show globalusage on the imagepage
Modified paths:
  • /trunk/extensions/GlobalUsage/GlobalUsage.i18n.php (modified) (history)
  • /trunk/extensions/GlobalUsage/GlobalUsage.php (modified) (history)
  • /trunk/extensions/GlobalUsage/GlobalUsageHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GlobalUsage/GlobalUsageHooks.php
@@ -75,4 +75,6 @@
7676
7777 return self::$gu;
7878 }
 79+
 80+
7981 }
\ No newline at end of file
Index: trunk/extensions/GlobalUsage/GlobalUsage.i18n.php
@@ -17,6 +17,9 @@
1818 'globalusage-ok' => 'Search',
1919 'globalusage-text' => 'Search global file usage',
2020 'globalusage-on-wiki' => 'Usage of [[:File:$1|$1]] on $2',
 21+ 'globalusage-of-file' => 'The following other wikis use this image:',
 22+ 'globalusage-more' => 'View [[Special:GlobalUsage/$1|more global usage]] of this file.',
 23+ 'globalusage-filterlocal' => 'Do not show local usage',
2124 );
2225
2326 /** Message documentation (Message documentation)
Index: trunk/extensions/GlobalUsage/GlobalUsage.php
@@ -65,6 +65,7 @@
6666 $wgHooks['FileUndeleteComplete'][] = 'GlobalUsageHooks::onFileUndeleteComplete';
6767 $wgHooks['UploadComplete'][] = 'GlobalUsageHooks::onUploadComplete';
6868 $wgHooks['TitleMoveComplete'][] = 'GlobalUsageHooks::onTitleMoveComplete';
 69+$wgHooks['ImagePageAfterImageLinks'][] = 'SpecialGlobalUsage::onImagePageAfterImageLinks';
6970
7071
7172 // If set to false, the local database contains the globalimagelinks table

Follow-up revisions

RevisionCommit summaryAuthorDate
r58705File forgotten to commit in r58693: Show globalusage on the imagepagebtongminh13:47, 7 November 2009

Comments

#Comment by Bryan (talk | contribs)   17:56, 20 November 2009

Reviewed by Werdna.

Status & tagging log