Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'program/lib/Roundcube/html.php')
-rw-r--r--program/lib/Roundcube/html.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/lib/Roundcube/html.php b/program/lib/Roundcube/html.php
index 4f282df4b..af61c68e3 100644
--- a/program/lib/Roundcube/html.php
+++ b/program/lib/Roundcube/html.php
@@ -263,8 +263,11 @@ class html
$cont = "\n" . $cont . "\n";
}
- return self::tag('script', $attr + array('type' => 'text/javascript', 'nl' => true),
- $cont, array_merge(self::$common_attrib, array('src','type','charset')));
+ if (self::$doctype == 'xhtml')
+ $attr += array('type' => 'text/javascript');
+
+ return self::tag('script', $attr + array('nl' => true), $cont,
+ array_merge(self::$common_attrib, array('src','type','charset')));
}
/**