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 "Using ULS in Special:PageLanguage"
[lhc/web/wiklou.git]
/
includes
/
content
/
JavaScriptContent.php
diff --git
a/includes/content/JavaScriptContent.php
b/includes/content/JavaScriptContent.php
index
0991f07
..
c0194c2
100644
(file)
--- a/
includes/content/JavaScriptContent.php
+++ b/
includes/content/JavaScriptContent.php
@@
-34,9
+34,10
@@
class JavaScriptContent extends TextContent {
/**
* @param string $text JavaScript code.
/**
* @param string $text JavaScript code.
+ * @param string $modelId the content model name
*/
*/
- public function __construct( $text ) {
- parent::__construct( $text,
CONTENT_MODEL_JAVASCRIPT
);
+ public function __construct( $text
, $modelId = CONTENT_MODEL_JAVASCRIPT
) {
+ parent::__construct( $text,
$modelId
);
}
/**
}
/**