From: Antoine Musso Date: Mon, 15 Nov 2010 21:14:29 +0000 (+0000) Subject: Use accessor when trying to get a private property. X-Git-Tag: 1.31.0-rc.0~33876 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=7fbd97f10a6c6ac2fb11d4220744d9c849a27c1b;p=lhc%2Fweb%2Fwiklou.git Use accessor when trying to get a private property. I kept hitting my browser cache when verifying my change, this mean I have committed r76700 without testing it :( --- diff --git a/includes/HistoryPage.php b/includes/HistoryPage.php index 620f0e6b17..39263219e9 100644 --- a/includes/HistoryPage.php +++ b/includes/HistoryPage.php @@ -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' ) ),