Siebrand has uploaded a new change for review.

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


Change subject: Avoid calling deprecated User::getSkin()
......................................................................

Avoid calling deprecated User::getSkin()

Change-Id: If8246aa2c192d490d18c405d35e654a3b1c9ae4f
---
M WikilogFeed.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikilog 
refs/changes/45/106945/1

diff --git a/WikilogFeed.php b/WikilogFeed.php
index 4d9d530..c696042 100644
--- a/WikilogFeed.php
+++ b/WikilogFeed.php
@@ -77,7 +77,7 @@
         */
        public function __construct( Title $title, $format, WikilogQuery 
$query, $limit )
        {
-               global $wgUser;
+               global $wgOut;
 
                $this->mTitle = $title;
                $this->mFormat = $format;
@@ -87,7 +87,7 @@
                $this->mIndexField = $this->getIndexField();
 
                # Retrieve copyright notice.
-               $skin = $wgUser->getSkin();
+               $skin = $wgOut->getSkin();
                $saveExpUrls = WikilogParser::expandLocalUrls();
                $this->mCopyright = $skin->getCopyright( 'normal' );
                WikilogParser::expandLocalUrls( $saveExpUrls );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If8246aa2c192d490d18c405d35e654a3b1c9ae4f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikilog
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to