/**
* @param string $text CSS code.
+ * @param string $modelId the content content model
*/
- public function __construct( $text ) {
- parent::__construct( $text, CONTENT_MODEL_CSS );
+ public function __construct( $text, $modelId = CONTENT_MODEL_CSS ) {
+ parent::__construct( $text, $modelId );
}
/**
$text = $this->getNativeData();
$pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
- return new CssContent( $pst );
+ return new static( $pst );
}
/**