]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.php
remove $link
[tt-rss.git] / prefs.php
index 7a7d2842cc99f4dd2f9a0834768363a3891a7d97..54d5ebad8cf7c47b4ba98759941ed92f5e8a9cc8 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -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');
 ?>
        <?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" />
 
 </div>
 
-<?php db_close($link); ?>
+<?php db_close(); ?>
 
 </body>
 </html>