mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
8e03e68d68
commit
8d6c872297
8 changed files with 132 additions and 131 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue