r48870 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48869‎ | r48870 | r48871 >
Date:10:12, 26 March 2009
Author:nad
Status:deferred
Tags:
Comment:
add doctype to sent content
Modified paths:
  • /trunk/extensions/EmailPage/EmailPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EmailPage/EmailPage_body.php
@@ -223,8 +223,9 @@
224224 } else $css = '';
225225
226226 # Create a html wrapper for the message
 227+ $doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
227228 $head = "<head>$css</head>";
228 - $message = "<html>$head<body style=\"margin:10px\"><div id=\"bodyContent\">$message</div></body></html>";
 229+ $message = "$doctype\n<html>$head<body style=\"margin:10px\"><div id=\"bodyContent\">$message</div></body></html>";
229230 }
230231
231232 # Send message or list recipients

Status & tagging log