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:
Timo Tijhof 2015-05-02 00:50:13 +01:00
parent 4c92cbc430
commit 19a6005668
2 changed files with 8 additions and 7 deletions

View file

@ -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' ),
);
}
}

View file

@ -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;
}
}