From: Roan Kattouw Date: Sun, 27 Mar 2011 14:13:57 +0000 (+0000) Subject: Fix default implementation of ResourceLoaderModule::getStyles() to return an array... X-Git-Tag: 1.31.0-rc.0~31164 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=246362f8c2acb145c01fba88c8e7bdb27f38d78e;p=lhc%2Fweb%2Fwiklou.git Fix default implementation of ResourceLoaderModule::getStyles() to return an array, not a string. Was causing problems with another function that was being fed the return value of getStyles() and used an array type hint --- diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 6f0d0754c5..73fcddf4a8 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -135,7 +135,7 @@ abstract class ResourceLoaderModule { */ public function getStyles( ResourceLoaderContext $context ) { // Stub, override expected - return ''; + return array(); } /**