From 882bef11d42e78f8ef4192d884cda42492ae3044 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 29 Sep 2009 13:26:39 +0000 Subject: [PATCH] bug 20860 [[Special:Allmessages]] to have direct (edit) link --- RELEASE-NOTES | 1 + includes/specials/SpecialAllmessages.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 67f32d48b3..3a2e05b6a8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/specials/SpecialAllmessages.php b/includes/specials/SpecialAllmessages.php index b88b6a6317..7fc9192f0a 100644 --- a/includes/specials/SpecialAllmessages.php +++ b/includes/specials/SpecialAllmessages.php @@ -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 ); -- 2.20.1