]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove get_pref calls from error.php because it is supposed to work w/o logged in...
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 18 Nov 2005 07:52:37 +0000 (08:52 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 18 Nov 2005 07:52:37 +0000 (08:52 +0100)
error.php

index 5e915483d8bcccf446f2354f0e6028130613430b..1fd59ed700ee5873fe4e4b45b7c4eff1947da16a 100644 (file)
--- a/error.php
+++ b/error.php
@@ -3,8 +3,6 @@
        require_once "config.php";
        require_once "db-prefs.php";
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); 
-
        $ERRORS[0] = "Unknown error";
 
        $ERRORS[1] = "This program requires XmlHttpRequest " .
@@ -35,7 +33,6 @@
 </head>
 
 <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
-<? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
 <tr>
        <td colspan="2">
                <table cellspacing="0" cellpadding="0" width="100%"><tr>
@@ -48,7 +45,6 @@
                </tr></table>
        </td>
 </tr>
-<? } ?>
 <tr>
        <td id="prefContent" class="prefContent" valign="top" colspan="2">
                
@@ -58,7 +54,6 @@
 
        </td>
 </tr>
-<? if (get_pref($link, 'DISPLAY_FOOTER')) { ?>
 <tr>
        <td class="footer" colspan="2">
                <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
@@ -67,7 +62,6 @@
                <? } ?>
        </td>
 </td>
-<? } ?>
 </table>