Use accessor when trying to get a private property.
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 15 Nov 2010 21:14:29 +0000 (21:14 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 15 Nov 2010 21:14:29 +0000 (21:14 +0000)
I kept hitting my browser cache when verifying my change, this
mean I have committed r76700 without testing it :(

includes/HistoryPage.php

index 620f0e6..3926321 100644 (file)
@@ -313,7 +313,7 @@ class HistoryPager extends ReverseChronologicalPager {
        function __construct( $historyPage, $year = '', $month = '', $tagFilter = '', $conds = array() ) {
                parent::__construct();
                $this->historyPage = $historyPage;
-               $this->title = $this->historyPage->title;
+               $this->title = $this->historyPage->getTitle();
                $this->tagFilter = $tagFilter;
                $this->getDateCond( $year, $month );
                $this->conds = $conds;
@@ -337,7 +337,7 @@ class HistoryPager extends ReverseChronologicalPager {
                        'tables'  => array( 'revision' ),
                        'fields'  => Revision::selectFields(),
                        'conds'   => array_merge(
-                               array( 'rev_page' => $this->historyPage->title->getArticleID() ),
+                               array( 'rev_page' => $this->historyPage->getTitle()->getArticleID() ),
                                $this->conds ),
                        'options' => array( 'USE INDEX' => array( 'revision' => 'page_timestamp' ) ),
                        'join_conds' => array( 'tag_summary' => array( 'LEFT JOIN', 'ts_rev_id=rev_id' ) ),