From: Timo Tijhof Date: Mon, 23 Mar 2015 03:56:35 +0000 (+0000) Subject: resourceloader: Use parent getDefinitionSummary() in ResourceLoaderFileModule X-Git-Tag: 1.31.0-rc.0~12020^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=1fc5803a788e4e47e91511f6643991b2e47943ce;p=lhc%2Fweb%2Fwiklou.git resourceloader: Use parent getDefinitionSummary() in ResourceLoaderFileModule Right now ResourceLoaderModule::getDefinitionSummary just returns an array with the class name, but may be extended in the future. Either way, it shouldn't be repeated in the subclass. Change-Id: Ic1d58f8d330fb2176daffc7ad39bc0751c196181 --- diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index fbca08e8f7..0104fe9c5e 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -587,9 +587,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { * @return array */ public function getDefinitionSummary( ResourceLoaderContext $context ) { - $summary = array( - 'class' => get_class( $this ), - ); + $summary = parent::getDefinitionSummary( $context ); foreach ( array( 'scripts', 'debugScripts',