remove get_pref calls from error.php because it is supposed to work w/o logged in user

master
Andrew Dolgov 19 years ago
parent 5f334d7167
commit d9a94634ad

@ -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>

Loading…
Cancel
Save