X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FCssContentHandler.php;h=9c1103536cac3e1e76ee438336915fe1ae773329;hb=3871d05366969b1654badb034b8c6c269d662126;hp=dfa01e2cb1d35ccfa85cd8b82249662457257026;hpb=8c087b9fd13d9302ec1be2176ef1ae344b3f8273;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/CssContentHandler.php b/includes/content/CssContentHandler.php index dfa01e2cb1..9c1103536c 100644 --- a/includes/content/CssContentHandler.php +++ b/includes/content/CssContentHandler.php @@ -33,11 +33,11 @@ class CssContentHandler extends CodeContentHandler { * @param string $modelId */ public function __construct( $modelId = CONTENT_MODEL_CSS ) { - parent::__construct( $modelId, array( CONTENT_FORMAT_CSS ) ); + parent::__construct( $modelId, [ CONTENT_FORMAT_CSS ] ); } protected function getContentClass() { - return 'CssContent'; + return CssContent::class; } public function supportsRedirects() { @@ -49,7 +49,7 @@ class CssContentHandler extends CodeContentHandler { * * @param Title $destination * @param string $text ignored - * @return JavaScriptContent + * @return CssContent */ public function makeRedirectContent( Title $destination, $text = '' ) { // The parameters are passed as a string so the / is not url-encoded by wfArrayToCgi