Skip to content

Commit f2145cf

Browse files
committed
Add doctype variable in com_connect_lAtts()
1 parent c881529 commit f2145cf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

com_connect.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ function com_connect($atts, $thing = '')
392392
$expire = abs(assert_int($expire));
393393

394394
static $headers_sent = false;
395+
395396
if (!$headers_sent) {
396397
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $now - (3600 * 24 * 7)) . ' GMT');
397398
header('Expires: ' . gmdate('D, d M Y H:i:s', $now + $expire) . ' GMT');
@@ -1645,6 +1646,8 @@ function com_connect_group_validate()
16451646
*/
16461647
function com_connect_lAtts($pairs, $atts)
16471648
{
1649+
$doctype = get_pref('doctype', 'xhtml');
1650+
16481651
foreach (array('button', 'copysender', 'checked', 'required', 'send_article', 'show_input', 'show_error') as $key) {
16491652
if (isset($atts[$key])) {
16501653
$atts[$key] = ($atts[$key] === 'yes' || intval($atts[$key])) ? 1 : 0;

0 commit comments

Comments
 (0)