Changeset 40386


Ignore:
Timestamp:
Sep 30, 2008, 7:28:05 AM (11 years ago)
Author:
jmpp@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/includes/common.inc

    r36573 r40386  
    7979                break;
    8080            case "ports.php":
    81                 print "
    82                     <div id='content'>
     81                print '
     82                    <div id="content">
    8383                       
    84                         <h2 class='hdr'>MacPorts Portfiles</h2>
     84                        <h2 class="hdr">MacPorts Portfiles</h2>
    8585                        <p>Our database is currently unavailable. We hope to have it back soon!</p>
    8686                       
    8787                    </div>
    88                 ";
     88                ';
    8989            default:
    9090                print_footer();
     
    144144function obfuscate_email($email) {
    145145    $IMGDIR = '/img';
    146    
    147     return "<span class='email'>" . str_replace('@', "<img src='$IMGDIR/at.gif' alt='at' />", $email) . "</span>";
     146    return '<span class="email">' . str_replace('@', "<img src=\"$IMGDIR/at.gif\" alt=\"at\" />", $email) . '</span>';
    148147}
    149148
Note: See TracChangeset for help on using the changeset viewer.