mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-12-20 18:13:00 +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 ) {
|
protected function getPages( ResourceLoaderContext $context ) {
|
||||||
global $wgUseSiteCss;
|
global $wgUseSiteCss;
|
||||||
if ( $wgUseSiteCss ) {
|
if ( !$wgUseSiteCss ) {
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'MediaWiki:Geshi.css' => array( 'type' => 'style' ),
|
'MediaWiki:Geshi.css' => array( 'type' => 'style' ),
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,10 +70,11 @@ class ResourceLoaderGeSHiModule extends ResourceLoaderModule {
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDefinitionSummary( ResourceLoaderContext $context ) {
|
public function getDefinitionSummary( ResourceLoaderContext $context ) {
|
||||||
return array(
|
$summary = parent::getDefinitionSummary();
|
||||||
'class' => get_class( $this ),
|
$summary[] = array(
|
||||||
'lang' => $this->lang,
|
'lang' => $this->lang,
|
||||||
'geshi' => GESHI_VERSION,
|
'geshi' => GESHI_VERSION,
|
||||||
);
|
);
|
||||||
|
return $summary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue