From 8ca8e37db713f59d7c62e23ba489efe39665ba44 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Sun, 2 Oct 2011 17:42:21 +0000 Subject: [PATCH] More RequestContext -> IContextSource. --- includes/Pager.php | 2 +- includes/cache/HTMLFileCache.php | 8 ++++---- includes/specials/SpecialActiveusers.php | 2 +- includes/specials/SpecialCategories.php | 2 +- includes/specials/SpecialListfiles.php | 2 +- includes/specials/SpecialListusers.php | 2 +- includes/specials/SpecialNewimages.php | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/includes/Pager.php b/includes/Pager.php index 75a3eccb22..b91b061752 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -810,7 +810,7 @@ abstract class TablePager extends IndexPager { var $mSort; var $mCurrentRow; - function __construct( RequestContext $context = null ) { + function __construct( IContextSource $context = null ) { if ( $context ) { $this->setContext( $context ); } diff --git a/includes/cache/HTMLFileCache.php b/includes/cache/HTMLFileCache.php index 0ebaf0460d..d8313f60d6 100644 --- a/includes/cache/HTMLFileCache.php +++ b/includes/cache/HTMLFileCache.php @@ -51,10 +51,10 @@ class HTMLFileCache extends FileCacheBase { /** * Check if pages can be cached for this request/user - * @param $context RequestContext + * @param $context IContextSource * @return bool */ - public static function useFileCache( RequestContext $context ) { + public static function useFileCache( IContextSource $context ) { global $wgUseFileCache, $wgShowIPinHeader, $wgContLang; if ( !$wgUseFileCache ) { return false; @@ -86,10 +86,10 @@ class HTMLFileCache extends FileCacheBase { /** * Read from cache to context output - * @param $context RequestContext + * @param $context IContextSource * @return void */ - public function loadFromFileCache( RequestContext $context ) { + public function loadFromFileCache( IContextSource $context ) { global $wgMimeType, $wgLanguageCode; wfDebug( __METHOD__ . "()\n"); diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index 4394d4246b..ee2fd4c8cd 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -42,7 +42,7 @@ class ActiveUsersPager extends UsersPager { */ protected $groups; - function __construct( RequestContext $context = null, $group = null ) { + function __construct( IContextSource $context = null, $group = null ) { global $wgActiveUserDays; parent::__construct( $context ); diff --git a/includes/specials/SpecialCategories.php b/includes/specials/SpecialCategories.php index a957b0c2f5..896f8e7721 100644 --- a/includes/specials/SpecialCategories.php +++ b/includes/specials/SpecialCategories.php @@ -59,7 +59,7 @@ class SpecialCategories extends SpecialPage { * @ingroup SpecialPage Pager */ class CategoryPager extends AlphabeticPager { - function __construct( RequestContext $context, $from ) { + function __construct( IContextSource $context, $from ) { parent::__construct( $context ); $from = str_replace( ' ', '_', $from ); if( $from !== '' ) { diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index c6afe5fde9..1e73fefab6 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -63,7 +63,7 @@ class ImageListPager extends TablePager { var $mSearch = ''; var $mIncluding = false; - function __construct( RequestContext $context, $userName = null, $search = '', $including = false ) { + function __construct( IContextSource $context, $userName = null, $search = '', $including = false ) { global $wgMiserMode; $this->mIncluding = $including; diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index fd91582620..44c0a07137 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -34,7 +34,7 @@ */ class UsersPager extends AlphabeticPager { - function __construct( RequestContext $context = null, $par = null ) { + function __construct( IContextSource $context = null, $par = null ) { if ( $context ) { $this->setContext( $context ); } diff --git a/includes/specials/SpecialNewimages.php b/includes/specials/SpecialNewimages.php index 401380f18d..99a17f2074 100644 --- a/includes/specials/SpecialNewimages.php +++ b/includes/specials/SpecialNewimages.php @@ -50,7 +50,7 @@ class SpecialNewFiles extends IncludableSpecialPage { */ class NewFilesPager extends ReverseChronologicalPager { - function __construct( RequestContext $context, $par = null ) { + function __construct( IContextSource $context, $par = null ) { $this->like = $context->getRequest()->getText( 'like' ); $this->showbots = $context->getRequest()->getBool( 'showbots' , 0 ); -- 2.20.1