Aude has uploaded a new change for review.
https://gerrit.wikimedia.org/r/94082
Change subject: Remove use of deorecated ChangesList function
......................................................................
Remove use of deorecated ChangesList function
Change-Id: I145505273be83ad6c9f93fa86de95541a7a4317e
---
M RSSStandards/RSSStandards.class.php
1 file changed, 9 insertions(+), 9 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions
refs/changes/82/94082/1
diff --git a/RSSStandards/RSSStandards.class.php
b/RSSStandards/RSSStandards.class.php
index 80e2a09..a5f9ed3 100644
--- a/RSSStandards/RSSStandards.class.php
+++ b/RSSStandards/RSSStandards.class.php
@@ -49,9 +49,9 @@
$this->setHook( 'BeforePageDisplay' );
wfProfileOut( 'BS::'.__METHOD__ );
}
-
+
/**
- *
+ *
* @param OutputPage $oOutputPage
* @param SkinTemplate $oSkinTemplate
* @return boolean
@@ -146,15 +146,15 @@
$res = $dbr->select(
array( 'page', 'recentchanges' ),
'*',
- array(
+ array(
'page_title' => $sTitle,
'page_namespace' => $iNSid,
'rc_timestamp > '. $dbr->timestamp( time() -
intval( 7 * 86400 ) )
),
__METHOD__,
array( 'ORDER BY' => 'rc_timestamp DESC' ),
- array(
- 'page'=> array( 'LEFT JOIN', 'rc_cur_id =
page_id' )
+ array(
+ 'page'=> array( 'LEFT JOIN', 'rc_cur_id =
page_id' )
)
);
@@ -217,7 +217,7 @@
return $channel->buildOutput();
}
-
+
public function buildRssCat() {
global $wgRequest, $wgSitename, $wgDBprefix;
@@ -527,7 +527,7 @@
$linkBatch->execute();
$dbr->dataSeek( $res, 0 );
- $list = ChangesList::newFromUser( $user );
+ $list = ChangesList::newFromContext( $skin->getContext() );
$channel = RSSCreator::createChannel( SpecialPage::getTitleFor(
'Watchlist' ).' ('.$user->getName().')',
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage(
'bs-rssstandards-description_watch' )->plain() );
@@ -553,7 +553,7 @@
}
if ( $wgRCShowWatchingUsers && $user->getOption(
'shownumberswatching' ) ) {
- $rc->numberofWatchingusers = $dbr->selectField(
+ $rc->numberofWatchingusers = $dbr->selectField(
'watchlist',
'COUNT(*)',
array(
@@ -608,7 +608,7 @@
$btn->setType('button');
$btn->setValue(
SpecialPage::getTitleFor( 'Recentchanges'
)->getLocalUrl(
- array(
+ array(
'feed' => 'rss',
'u' => $wgUser->getName(),
'h' => $wgUser->getToken()
--
To view, visit https://gerrit.wikimedia.org/r/94082
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I145505273be83ad6c9f93fa86de95541a7a4317e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits