Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/267651

Change subject: Use $article->getPage()->loadPageData()
......................................................................

Use $article->getPage()->loadPageData()

Change-Id: I4e1d2c3205e516997b53ccbfbd1d62878e2e49ba
---
M classes/Thread.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads 
refs/changes/51/267651/1

diff --git a/classes/Thread.php b/classes/Thread.php
index 304c638..58ee6fb 100644
--- a/classes/Thread.php
+++ b/classes/Thread.php
@@ -541,7 +541,7 @@
                if ( isset( $line->page_namespace ) && isset( $line->page_title 
) ) {
                        $root_title = Title::makeTitle( $line->page_namespace, 
$line->page_title );
                        $this->root = new Article( $root_title, 0 );
-                       $this->root->loadPageData( $line );
+                       $this->root->getPage()->loadPageData( $line );
                } else {
                        if ( isset( self::$titleCacheById[$this->rootId] ) ) {
                                $root_title = 
self::$titleCacheById[$this->rootId];
@@ -684,7 +684,7 @@
                                }
 
                                $article = new Article( $t, 0 );
-                               $article->loadPageData( $row );
+                               $article->getPage()->loadPageData( $row );
 
                                self::$titleCacheById[$t->getArticleID()] = $t;
                                $articlesById[$article->getId()] = $article;

-- 
To view, visit https://gerrit.wikimedia.org/r/267651
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e1d2c3205e516997b53ccbfbd1d62878e2e49ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to