1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-03 03:39:15 +00:00

remove $link

This commit is contained in:
Andrew Dolgov
2013-04-17 16:23:15 +04:00
parent aca75cb5cb
commit 6322ac79a0
80 changed files with 1624 additions and 1727 deletions

View File

@@ -22,9 +22,9 @@
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
if (!init_plugins($link)) return;
if (!init_plugins()) return;
login_sequence($link);
login_sequence();
header('Content-Type: text/html; charset=utf-8');
?>
@@ -39,14 +39,14 @@
<?php echo stylesheet_tag("prefs.css"); ?>
<?php if ($_SESSION["uid"]) {
$theme = get_pref($link, "USER_CSS_THEME", $_SESSION["uid"], false);
$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
if ($theme) {
echo stylesheet_tag("themes/$theme");
}
}
?>
<?php print_user_stylesheet($link) ?>
<?php print_user_stylesheet() ?>
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
<link rel="icon" type="image/png" sizes="72x72" href="images/favicon-72px.png" />
@@ -154,7 +154,7 @@
</div>
<?php db_close($link); ?>
<?php db_close(); ?>
</body>
</html>