mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-12-20 02:02:05 +00:00
ResourceLoaderSchemaModule: Call parent getDefinitionSummary() method
This should've been the case already and will result in an exception otherwise in MediaWiki core as of Ibb292d2416839. Change-Id: I062a224662823224f3104d9e8d05abce47b1da81
This commit is contained in:
parent
4c92cbc430
commit
19a6005668
|
@ -26,12 +26,12 @@ class ResourceLoaderGeSHiLocalModule extends ResourceLoaderWikiModule {
|
|||
*/
|
||||
protected function getPages( ResourceLoaderContext $context ) {
|
||||
global $wgUseSiteCss;
|
||||
if ( $wgUseSiteCss ) {
|
||||
return array(
|
||||
'MediaWiki:Geshi.css' => array( 'type' => 'style' ),
|
||||
);
|
||||
} else {
|
||||
if ( !$wgUseSiteCss ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
return array(
|
||||
'MediaWiki:Geshi.css' => array( 'type' => 'style' ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,10 +70,11 @@ class ResourceLoaderGeSHiModule extends ResourceLoaderModule {
|
|||
* @return array
|
||||
*/
|
||||
public function getDefinitionSummary( ResourceLoaderContext $context ) {
|
||||
return array(
|
||||
'class' => get_class( $this ),
|
||||
$summary = parent::getDefinitionSummary();
|
||||
$summary[] = array(
|
||||
'lang' => $this->lang,
|
||||
'geshi' => GESHI_VERSION,
|
||||
);
|
||||
return $summary;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue