r40301 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40300‎ | r40301 | r40302 >
Date:13:21, 1 September 2008
Author:aaron
Status:old
Tags:
Comment:
Add talk page link and shorten UI
Modified paths:
  • /trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/ReaderFeedback_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php
@@ -177,8 +177,8 @@
178178 'readerfeedback-level-4' => 'Excellent',
179179 'readerfeedback-submit' => 'Submit',
180180 'readerfeedback-main' => 'Only content pages can be rated.',
181 - 'readerfeedback-success' => '\'\'\'Thank you for reviewing this page!\'\'\' Reader feedback results for \'\'\'$1\'\'\' can be found [$2 here].',
182 - 'readerfeedback-voted' => '\'\'\'It appears that you already rated this page.\'\'\' Reader feedback results for \'\'\'$1\'\'\' can be found [$2 here].',
 181+ 'readerfeedback-success' => '\'\'\'Thank you for reviewing this page!\'\'\'. Please leave any comments [$3 here].',
 182+ 'readerfeedback-voted' => '\'\'\'It appears that you already rated this page\'\'\'. Please leave any comments [$3 here].',
183183 'readerfeedback-submitting' => 'Submitting...',
184184 'readerfeedback-finished' => 'Thank you!',
185185
Index: trunk/extensions/FlaggedRevs/specialpages/ReaderFeedback_body.php
@@ -151,12 +151,13 @@
152152 return '<err#>';
153153 }
154154 $graphLink = SpecialPage::getTitleFor( 'RatingHistory' )->getFullUrl( 'target='.$form->page->getPrefixedUrl() );
 155+ $talk = $form->page->getTalkPage();
155156 if( $bot || $form->submit() ) {
156157 return '<suc#>'.wfMsgExt( 'readerfeedback-success', array('parseinline'),
157 - $form->page->getPrefixedText(), $graphLink );
 158+ $form->page->getPrefixedText(), $graphLink, $talk->getFullUrl( 'action=edit&section=new' ) );
158159 } else {
159160 return '<err#>'.wfMsgExt( 'readerfeedback-voted', array('parseinline'),
160 - $form->page->getPrefixedText(), $graphLink );
 161+ $form->page->getPrefixedText(), $graphLink, $talk->getFullUrl( 'action=edit&section=new' ) );
161162 }
162163 }
163164