From ca8d802763f3004495751e213a379e122e931e96 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Fri, 2 Jul 2010 14:04:39 +0000 Subject: [PATCH] Special:ComparePages: output titles in a more human-readable form --- includes/specials/SpecialComparePages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialComparePages.php b/includes/specials/SpecialComparePages.php index 273fa6b66d..1dc143db84 100644 --- a/includes/specials/SpecialComparePages.php +++ b/includes/specials/SpecialComparePages.php @@ -61,7 +61,7 @@ class SpecialComparePages extends SpecialPage { $opts->setValue('rev1', $pdLastRevision->getId() ); } elseif ( $opts->getValue( 'rev1' ) != '' ) { $pdrev = Revision::newFromId( $opts->getValue( 'rev1' ) ); - if( $pdrev ) $opts->setValue( 'page1', $pdrev->getTitle()->getPrefixedDBkey() ); + if( $pdrev ) $opts->setValue( 'page1', $pdrev->getTitle()->getPrefixedText() ); } if( $title2 && $title2->exists() && $opts->getValue( 'rev2' ) == '' ) { $pda = new Article( $title2 ); @@ -70,7 +70,7 @@ class SpecialComparePages extends SpecialPage { $opts->setValue('rev2', $pdLastRevision->getId() ); } elseif ( $opts->getValue( 'rev2' ) != '' ) { $pdrev = Revision::newFromId( $opts->getValue( 'rev2' ) ); - if( $pdrev ) $opts->setValue( 'page2', $pdrev->getTitle()->getPrefixedDBkey() ); + if( $pdrev ) $opts->setValue( 'page2', $pdrev->getTitle()->getPrefixedText() ); } // Store some objects -- 2.20.1