summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-17 16:23:15 +0400
committerAndrew Dolgov <[email protected]>2013-04-17 16:48:41 +0400
commit6322ac79a020ab584d412d782d62b2ee77d7c6cf (patch)
treeb2e64a140a3bc9d9ce649ee67f8a687b6511d9f4 /prefs.php
parentaca75cb5cb323535099c7aef46a78ea3cec082f2 (diff)
remove $link
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/prefs.php b/prefs.php
index 7a7d2842c..54d5ebad8 100644
--- 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');
?>
@@ -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>