Skip to content

Commit

Permalink
Fix brain fade where FrameSet was send when it shouldn't be.
Browse files Browse the repository at this point in the history
The test was for NULL in development, then the function was changed to true/false but the test was missed.
  • Loading branch information
mr-russ committed Apr 18, 2007
1 parent e5f9d9d commit f69e853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Class to hold various commonly used functions
*
* $Id: Misc.php,v 1.143 2007/04/18 15:01:15 mr-russ Exp $
* $Id: Misc.php,v 1.144 2007/04/18 16:33:59 mr-russ Exp $
*/

class Misc {
Expand Down Expand Up @@ -359,7 +359,7 @@ function printHeader($title = '', $script = null, $frameset = false) {
header("Content-Type: text/html; charset=" . $lang['appcharset']);
// Send XHTML headers, or regular XHTML strict headers
echo "<?xml version=\"1.0\" encoding=\"", htmlspecialchars($lang['appcharset']), "\"?>\n";
if ($frameset !== null) {
if ($frameset == true) {
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n";
} else if (isset($conf['use_xhtml_strict']) && $conf['use_xhtml_strict']) {
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strict.dtd\">\n";
Expand Down

0 comments on commit f69e853

Please sign in to comment.