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

From: Date: Sun, 10 Feb 2008 19:25:16 +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-50962@lists.php.net to get a copy of this message
dufuz Sun Feb 10 19:25:16 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.256&r2=1.257&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.256 pearweb/include/pear-format-html.php:1.257 --- pearweb/include/pear-format-html.php:1.256 Sun Feb 10 18:27:51 2008 +++ pearweb/include/pear-format-html.php Sun Feb 10 19:25:16 2008 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.256 2008/02/10 18:27:51 dufuz Exp $ + $Id: pear-format-html.php,v 1.257 2008/02/10 19:25:16 dufuz Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -24,9 +24,10 @@ function extra_styles($new = null) { static $extra_styles = array(); - if (!is_null($new)) { + if ($new !== null) { $extra_styles[] = $new; } + return $extra_styles; } @@ -55,7 +56,6 @@ extra_styles('/css/manual.css'); } -$GLOBALS['_style'] = ''; $_style = ''; /** @@ -67,7 +67,7 @@ */ function response_header($title = 'The PHP Extension and Application Repository', $style = false, $extraHeaders = '') { - global $_style, $_header_done, $self, $auth_user, $RSIDEBAR_DATA; + global $_style, $_header_done, $self, $auth_user, $RSIDEBAR_DATA, $in_manual; $extra_styles = extra_styles(); @@ -85,7 +85,7 @@ $menu = draw_navigation(); } - if (isset($GLOBALS['in_manual']) && $GLOBALS['in_manual'] == false) { + if ($in_manual === false) { // The manual-related code takes care of sending the right headers. header('Content-Type: text/html; charset=ISO-8859-15'); } @@ -209,6 +209,7 @@ function response_footer($style = false, $extraContent = false) { + global $_style; static $called; if ($called) { return; @@ -216,7 +217,7 @@ $called = true; if (!$style) { - $style = $GLOBALS['_style']; + $style = $_style; } ?>

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