Set correct context for ImageHistoryPseudoPager
ContextSource::getContext (ImageHistoryPseudoPager): called and $context is null. Using RequestContext::getMain() for sanity Change-Id: I0430791a705f42ca3e5d02692070f0fb0dadc897
This commit is contained in:
parent
3ba815994d
commit
b6f1f03ae0
1 changed files with 1 additions and 1 deletions
|
|
@ -1225,7 +1225,7 @@ class ImageHistoryPseudoPager extends ReverseChronologicalPager {
|
|||
* @param ImagePage $imagePage
|
||||
*/
|
||||
function __construct( $imagePage ) {
|
||||
parent::__construct();
|
||||
parent::__construct( $imagePage->getContext() );
|
||||
$this->mImagePage = $imagePage;
|
||||
$this->mTitle = clone ( $imagePage->getTitle() );
|
||||
$this->mTitle->setFragment( '#filehistory' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue