From: Max Semenik Date: Fri, 2 Jul 2010 14:04:39 +0000 (+0000) Subject: Special:ComparePages: output titles in a more human-readable form X-Git-Tag: 1.31.0-rc.0~36308 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=ca8d802763f3004495751e213a379e122e931e96;p=lhc%2Fweb%2Fwiklou.git Special:ComparePages: output titles in a more human-readable form --- 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