cvs: pearweb /include pear-format-html.php

From: Date: Sun, 13 Jan 2008 18:31:29 +0000
Subject: cvs: pearweb /include pear-format-html.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-50293@lists.php.net to get a copy of this message
dufuz Sun Jan 13 18:31:29 2008 UTC Modified files: /pearweb/include pear-format-html.php Log: Cosmetics http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.247&r2=1.248&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.247 pearweb/include/pear-format-html.php:1.248 --- pearweb/include/pear-format-html.php:1.247 Sun Jan 13 01:11:47 2008 +++ pearweb/include/pear-format-html.php Sun Jan 13 18:31:29 2008 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.247 2008/01/13 01:11:47 dufuz Exp $ + $Id: pear-format-html.php,v 1.248 2008/01/13 18:31:29 dufuz Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -86,9 +86,7 @@ } if (isset($GLOBALS['in_manual']) && $GLOBALS['in_manual'] == false) { - /* The manual-related code takes care of sending the right - * headers. - */ + // The manual-related code takes care of sending the right headers. header('Content-Type: text/html; charset=ISO-8859-15'); } ?> @@ -96,9 +94,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> -<?php -echo $extraHeaders; -?> +<?php echo $extraHeaders; ?> <title>PEAR :: <?php echo $title; ?></title> <link rel="shortcut icon" href="/gifs/favicon.ico" /> <link rel="stylesheet" type="text/css" href="/css/reset-fonts.css" /> @@ -147,13 +143,9 @@ '&amp;status=All&amp;bug_type=All&amp;author_email=' . $auth_user->handle . '&amp;direction=DESC&amp;order_by=ts1&amp;showmenu=1">My Bugs</a></li> ' . "\n" . ' <li class="last signout">'; - if (empty($_SERVER['QUERY_STRING'])) { - echo make_link('?logout=1', 'Sign Out'); - } else { - echo make_link('?logout=1&amp;' - . htmlspecialchars($_SERVER['QUERY_STRING']), - 'Sign Out'); - } + + $query_string = empty($_SERVER['QUERY_STRING']) ? '' : '&amp;' . htmlspecialchars($_SERVER['QUERY_STRING']); + echo make_link('?logout=1' . $query_string, 'Sign Out'); echo "</li>\n"; } ?> @@ -285,7 +277,7 @@ </body> <?php if ($extraContent) { - print $extraContent; + echo $extraContent; } ?> </html> @@ -943,7 +935,7 @@ } echo '<a href="' . $url . '"' . ' title="' . $item['title'] . '" ' - . ($action == $item['url'] ? ' class="active" ' : '') + . ($action == $item['url'] ? ' class="current" ' : '') . '>' . $title . '</a> ';

« previous php.pear.cvs (#50293) next »