dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0904bb2
)
always protect js with cdata enclosed in /* */- doesn't harm for html, helps to valid...
author
Gabriel Wicke
<gwicke@users.mediawiki.org>
Fri, 9 Apr 2004 15:15:11 +0000
(15:15 +0000)
committer
Gabriel Wicke
<gwicke@users.mediawiki.org>
Fri, 9 Apr 2004 15:15:11 +0000
(15:15 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
93fc975
..
71beced
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-2468,13
+2468,8
@@
class Skin {
"key"=>"R"
)
);
"key"=>"R"
)
);
- $toolbar ="<script type='text/javascript'>\n";
-
- $xml = ($wgMimeType == "text/xml");
- if( $xml ) {
- $toolbar .= "<![CDATA[";
- }
-
+ $toolbar ="<script type='text/javascript'>\n/*<![CDATA[*/\n";
+
$toolbar.="document.writeln(\"<div id='toolbar' tabindex='4000000'>\");\n";
foreach($toolarray as $tool) {
$toolbar.="document.writeln(\"<div id='toolbar' tabindex='4000000'>\");\n";
foreach($toolarray as $tool) {
@@
-2496,11
+2491,8
@@
class Skin {
$toolbar.="addInfobox('" . addslashes( wfMsg( "infobox" ) ) . "','" . addslashes(wfMsg("infobox_alert")) . "');\n";
$toolbar.="document.writeln(\"</div>\");\n";
$toolbar.="addInfobox('" . addslashes( wfMsg( "infobox" ) ) . "','" . addslashes(wfMsg("infobox_alert")) . "');\n";
$toolbar.="document.writeln(\"</div>\");\n";
-
- if( $xml ) {
- $toolbar .= "]]>";
- }
- $toolbar.="</script>";
+
+ $toolbar.="/*]]>*/</script>";
return $toolbar;
}
}
return $toolbar;
}
}