diff --git a/www/pages/cart.php b/www/pages/cart.php index 3a6112838..7d5958510 100644 --- a/www/pages/cart.php +++ b/www/pages/cart.php @@ -14,7 +14,7 @@ if (isset($_GET["add"])) { } foreach ($data as $d) { - $users->addCart($page->users->currentUserId(), $d["id"]); + $page->users->addCart($page->users->currentUserId(), $d["id"]); } } elseif (isset($_REQUEST["delete"])) { if (isset($_GET['delete']) && !empty($_GET['delete'])) { @@ -24,7 +24,7 @@ if (isset($_GET["add"])) { } if (isset($ids)) { - $users->delCartByGuid($ids, $users->currentUserId()); + $page->users->delCartByGuid($ids, $page->users->currentUserId()); } if (!isset($_POST['delete'])) { diff --git a/www/templates/nntmux/views/frontend/cart.tpl b/www/templates/nntmux/views/frontend/cart.tpl index 2fbad4153..0e3c5571f 100644 --- a/www/templates/nntmux/views/frontend/cart.tpl +++ b/www/templates/nntmux/views/frontend/cart.tpl @@ -2,44 +2,40 @@

My Cart

-Your cart can be downloaded as an Rss Feed. + Your cart can be downloaded as an Rss Feed.

{if $results|@count > 0} -
+ -
- With Selected: - - {if $sabintegrated}{/if} - -
+
+ With Selected: + +
- - - - - - - +
nameaddedoptions
+ + + + + + - {foreach from=$results item=result} - - - - - - - {/foreach} + {foreach from=$results item=result} + + + + + + + {/foreach} -
nameaddedoptions
- - - {$result.searchname|escape:"htmlall"|wordwrap:75:"\n":true} - {$result.createddate|date_format}delete
+ {$result.searchname|escape:"htmlall"|wordwrap:75:"\n":true} + {$result.createddate|date_format}delete
-
+ + {else} -

No NZBs in cart

+

No NZBs in cart

{/if} \ No newline at end of file