summaryrefslogtreecommitdiffstats
path: root/web/html/home.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2013-02-03 17:26:29 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2013-02-10 12:10:38 +0100
commit8d6c872297459ceb463ed496968cc7cea32274a8 (patch)
tree2e1e5e07459f7ce62be0dccf26609bef4b2ad873 /web/html/home.php
parent8e03e68d687015b5cd8c9d3857e1a1d007252afa (diff)
downloadaur-8d6c872297459ceb463ed496968cc7cea32274a8.tar.gz
aur-8d6c872297459ceb463ed496968cc7cea32274a8.tar.xz
Remove unnecessary database connection parameter from all functions
All functions now have a database connection method that will use the same database connection. This imitates the functionality of passing a database connection as an argument and makes it redundant. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/home.php')
-rw-r--r--web/html/home.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/html/home.php b/web/html/home.php
index a10ebf01..8fccc7ff 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -80,7 +80,7 @@ $dbh = DB::connect();
<td class="pkg-name">
<?php
$userid = uid_from_sid($_COOKIE["AURSID"]);
- user_table($userid, $dbh);
+ user_table($userid);
?>
</td>
</tr>
@@ -100,10 +100,10 @@ $dbh = DB::connect();
</form>
</div>
<div id="pkg-updates" class="widget box">
- <?php updates_table($dbh); ?>
+ <?php updates_table(); ?>
</div>
<div id="pkg-stats" class="widget box">
- <?php general_stats_table($dbh); ?>
+ <?php general_stats_table(); ?>
</div>
</div>