[30750] trunk/www/includes/common.inc

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 5 21:18:08 PST 2007


Revision: 30750
          http://trac.macosforge.org/projects/macports/changeset/30750
Author:   jmpp at macports.org
Date:     2007-11-05 21:18:07 -0800 (Mon, 05 Nov 2007)

Log Message:
-----------

Add a long-ago-suggested-by-Ryan header() to field to includes/common.inc to force serving of all our webpages as application/xhtml+xml documents
(Ryan, any reason why you orginally suggested "'(...) charset=' . $encoding" rather than plain "'(...) charset=$encoding'"?)

Modified Paths:
--------------
    trunk/www/includes/common.inc

Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc	2007-11-06 05:11:45 UTC (rev 30749)
+++ trunk/www/includes/common.inc	2007-11-06 05:18:07 UTC (rev 30750)
@@ -43,6 +43,7 @@
 # Page header
 function print_header($title, $encoding) {
     global $MPWEB;
+    header("Content-Type: application/xhtml+xml; charset=$encoding");
     echo "<?xml version=\"1.0\" encoding=\"$encoding\"?>\n";
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071105/c9bf5f6f/attachment.html


More information about the macports-changes mailing list