[40386] trunk/www/includes/common.inc
jmpp at macports.org
jmpp at macports.org
Tue Sep 30 00:28:05 PDT 2008
Revision: 40386
http://trac.macports.org/changeset/40386
Author: jmpp at macports.org
Date: 2008-09-30 00:28:05 -0700 (Tue, 30 Sep 2008)
Log Message:
-----------
While in the pursuit of well-formed html: use the appropriate quoting for the generated markup, double, and switch accordingly to single while in php mode.
Modified Paths:
--------------
trunk/www/includes/common.inc
Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc 2008-09-30 07:14:32 UTC (rev 40385)
+++ trunk/www/includes/common.inc 2008-09-30 07:28:05 UTC (rev 40386)
@@ -78,14 +78,14 @@
);
break;
case "ports.php":
- print "
- <div id='content'>
+ print '
+ <div id="content">
- <h2 class='hdr'>MacPorts Portfiles</h2>
+ <h2 class="hdr">MacPorts Portfiles</h2>
<p>Our database is currently unavailable. We hope to have it back soon!</p>
</div>
- ";
+ ';
default:
print_footer();
die();
@@ -143,8 +143,7 @@
# Obfuscate e-mail addresses:
function obfuscate_email($email) {
$IMGDIR = '/img';
-
- return "<span class='email'>" . str_replace('@', "<img src='$IMGDIR/at.gif' alt='at' />", $email) . "</span>";
+ return '<span class="email">' . str_replace('@', "<img src=\"$IMGDIR/at.gif\" alt=\"at\" />", $email) . '</span>';
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080930/e11075ed/attachment.html
More information about the macports-changes
mailing list