r3801 printPDOException(): don't call printPageHeaders(), which indirectly accesses...
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 10 Jun 2010 14:51:27 +0000 (14:51 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 10 Jun 2010 14:51:27 +0000 (14:51 +0000)
inc/exceptions.php

index d47332d5c27ac4a845dbf6424204978d0613e0a4..54621a10ef62b6631454f7e709e85b7d9b1c93d0 100644 (file)
@@ -151,7 +151,6 @@ function printPDOException($e)
        echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
        echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n";
        echo "<head><title> PDO Exception </title>\n";
-       printPageHeaders();
        echo '</head> <body>';
        echo '<h2>Pdo exception: '.get_class($e).'</h2><code>'.$e->getMessage().'</code> (<code>'.$e->getCode().'</code>)';
        echo '<p>at file <code>'.$e->getFile().'</code>, line <code>'.$e->getLine().'</code></p><pre>';