From f1ce97c965d54e417d453539693a838ed7c536ff Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 7 Aug 2014 16:34:57 +0100 Subject: [PATCH] Fix variable names Change I2f4d298a15046c4dc02afbf7582c90a1f17ea4cb added $title = $this->getTitle() but $title was already defined for the delete reason message, causing the delete log except to be shown always for the page "MediaWiki:Deletereason-dropdown". Renaming the previous $title to fix this. Change-Id: Ibecd181e80d83b0163e17d53b0b1b8c4a366ac1d --- includes/page/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/page/Article.php b/includes/page/Article.php index 436f148984..4a6e002d80 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -1751,9 +1751,9 @@ class Article implements Page { Xml::closeElement( 'form' ); if ( $user->isAllowed( 'editinterface' ) ) { - $title = Title::makeTitle( NS_MEDIAWIKI, 'Deletereason-dropdown' ); + $dropdownTitle = Title::makeTitle( NS_MEDIAWIKI, 'Deletereason-dropdown' ); $link = Linker::link( - $title, + $dropdownTitle, wfMessage( 'delete-edit-reasonlist' )->escaped(), array(), array( 'action' => 'edit' ) -- 2.20.1