bug 20860 [[Special:Allmessages]] to have direct (edit) link
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 29 Sep 2009 13:26:39 +0000 (13:26 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 29 Sep 2009 13:26:39 +0000 (13:26 +0000)
RELEASE-NOTES
includes/specials/SpecialAllmessages.php

index 67f32d4..3a2e05b 100644 (file)
@@ -543,6 +543,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   now links to the file rather than the file description page
 * Password fields built with HTMLForm now still have the type="password" attribute
   if $wgHtml5=false.
+* (bug 20860) Entries on Special:Allmessages now have direct "edit" link
 
 == API changes in 1.16 ==
 
index b88b6a6..7fc9192 100644 (file)
@@ -299,7 +299,8 @@ class AllmessagesTablePager extends TablePager {
 
                                $title = Title::makeTitle( NS_MEDIAWIKI, $value . $this->suffix );
                                $talk  = Title::makeTitle( NS_MEDIAWIKI_TALK, $value . $this->suffix );
-
+                               $edit  = $this->mSkin->link( $title, wfMsg( 'edit' ), array(), 'action=edit' );
+                               
                                if( $this->mCurrentRow->am_customised ){
                                        $title = $this->mSkin->linkKnown( $title, $wgLang->lcfirst( $value ) );
                                } else {
@@ -322,7 +323,7 @@ class AllmessagesTablePager extends TablePager {
                                                array( 'broken' )
                                        );
                                }
-                               return $title . ' (' . $talk . ')';
+                               return $title . ' (' . $wgLang->pipeList( array( $edit, $talk ) ) . ')';
 
                        case 'am_default' :
                                return Sanitizer::escapeHtmlAllowEntities( $value, ENT_QUOTES );