Skip to content

Commit

Permalink
Remove ContextSource reference (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjames committed Oct 8, 2017
1 parent 5de07c6 commit 0d65f76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions formats/gallery/Gallery.php
Expand Up @@ -28,7 +28,7 @@ class Gallery extends ResultPrinter {
* @return string
*/
public function getName() {
return $this->getContext()->msg( 'srf_printername_gallery' )->text();
return $this->msg( 'srf_printername_gallery' )->text();
}

/**
Expand All @@ -45,7 +45,7 @@ protected function buildResult( SMWQueryResult $results ) {
// Intro/outro are not planned to work with the widget option
if ( ( $this->params['intro'] !== '' || $this->params['outro'] !== '' ) && $this->params['widget'] !== '' ){
return $results->addErrors( [
$this->getContext()->msg( 'srf-error-option-mix', 'widget' )->inContentLanguage()->text()
$this->msg( 'srf-error-option-mix', 'widget' )->inContentLanguage()->text()
] );
};

Expand Down Expand Up @@ -486,12 +486,12 @@ public function getParamDefinitions( array $definitions ) {
}

private function isSpecialPage() {
$title = $this->getContext()->getTitle();
$title = $GLOBALS['wgTitle'];
return $title instanceof Title && $title->isSpecialPage();
}

private function getFileNsTextForPageLanguage() {
$title = $this->getContext()->getTitle();
$title = $GLOBALS['wgTitle'];
return $title instanceof Title ? $title->getPageLanguage()->getNsText( NS_FILE ) : null;
}

Expand Down

0 comments on commit 0d65f76

Please sign in to comment.