mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 03:35:57 +00:00
remove $link
This commit is contained in:
10
index.php
10
index.php
@@ -32,7 +32,7 @@
|
||||
|
||||
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||
|
||||
if (!init_plugins($link)) return;
|
||||
if (!init_plugins()) return;
|
||||
|
||||
global $pluginhost;
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
login_sequence($link);
|
||||
login_sequence();
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
@@ -65,14 +65,14 @@
|
||||
<?php echo stylesheet_tag("cdm.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() ?>
|
||||
|
||||
<style type="text/css">
|
||||
<?php
|
||||
@@ -285,7 +285,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php db_close($link); ?>
|
||||
<?php db_close(); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user