r76583 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76582‎ | r76583 | r76584 >
Date:17:26, 12 November 2010
Author:churchofemacs
Status:deferred
Tags:
Comment:
fixing extension for vector (new hook) and minor system text changes
Modified paths:
  • /trunk/extensions/FlagPage/FlagPage.hooks.php (modified) (history)
  • /trunk/extensions/FlagPage/FlagPage.i18n.php (modified) (history)
  • /trunk/extensions/FlagPage/FlagPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlagPage/FlagPage.i18n.php
@@ -3,8 +3,8 @@
44
55 /* *** English *** */
66 $messages['en'] = array(
7 - 'flagpage' => 'Flag an article',
8 - 'flagpage-desc' => "Flag article with predefined templates",
 7+ 'flagpage' => 'Flag a page',
 8+ 'flagpage-desc' => "Flag page with predefined templates",
99 'flagpage-templatelist' => "<!--
1010 Edit this page to configure templates to use.
1111 Examples:
@@ -20,9 +20,9 @@
2121 'flagpage-preview' => 'Preview of the selected template:',
2222 'flagpage-confirmsave' => 'Please confirm your changes. ',
2323 'flagpage-submitbutton' => 'Save page with this template',
24 - 'flagpage-nonexistent'=> '<span class="plainlinks">The article “$1” does not exist. Perhaps it has been [{{fullurl:Special:Log|page=$1}} moved or deleted].</span>',
25 - 'flagpage-summary' => 'Added template [[$1]] using FlagArticle',
 24+ 'flagpage-nonexistent'=> '<span class="plainlinks">The page “$1” does not exist. Perhaps it has been [{{fullurl:Special:Log|page=$1}} moved or deleted].</span>',
 25+ 'flagpage-summary' => 'Added template [[$1]] using FlagPage',
2626 'flagpage-success' => '[[$1]] has been added to the page [[$2]].',
27 - 'flagpage-tab' => 'flag'
 27+ 'flagpage-tab' => 'Flag'
2828 );
2929
Index: trunk/extensions/FlagPage/FlagPage.php
@@ -20,3 +20,5 @@
2121 $wgExtensionAliasesFiles['FlagPage'] = $dir . 'FlagPage.alias.php';
2222 $wgSpecialPages['FlagPage'] = 'FlagPage'; # Let MediaWiki know about your new special page.
2323 $wgHooks['SkinTemplateTabs'][] = array( new FlagPageTabInstaller(), 'insertTab' ); # Hook displays the "flag" tab on pages
 24+$wgHooks['SkinTemplateNavigation'][] = array( new FlagPageTabInstaller(), 'insertTabVector' ); # The same, but with the new hook for vector
 25+
Index: trunk/extensions/FlagPage/FlagPage.hooks.php
@@ -17,4 +17,12 @@
1818 'href' => $special->getLocalUrl( $linkParam ) );
1919 return true;
2020 }
 21+
 22+ function insertTabVector( &$sktemplate, &$links ) {
 23+ // the old '$content_actions' array is thankfully just a
 24+ // sub-array of this one
 25+ // copied from Extension:ApprovedRevs (r74381). Author: yaron
 26+ self::insertTab( $skin, $links['views'] );
 27+ return true;
 28+ }
2129 }

Status & tagging log