dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Update README from [[mw:README]]"
[lhc/web/wiklou.git]
/
includes
/
content
/
CssContent.php
diff --git
a/includes/content/CssContent.php
b/includes/content/CssContent.php
index
2673084
..
8290603
100644
(file)
--- a/
includes/content/CssContent.php
+++ b/
includes/content/CssContent.php
@@
-34,9
+34,10
@@
class CssContent extends TextContent {
/**
* @param string $text CSS code.
/**
* @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
);
}
/**
}
/**
@@
-58,7
+59,7
@@
class CssContent extends TextContent {
$text = $this->getNativeData();
$pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
$text = $this->getNativeData();
$pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
- return new
CssContent
( $pst );
+ return new
static
( $pst );
}
/**
}
/**