From 13883501a0797d0322e1d9050c4ec5ff339f979c Mon Sep 17 00:00:00 2001 From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:36:26 +0000 Subject: [PATCH] Call purchase functions instead of order --- pages/index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/index.php b/pages/index.php index 6bcb10d..2dd12c1 100644 --- a/pages/index.php +++ b/pages/index.php @@ -23,9 +23,9 @@ class Page_Index extends Page { foreach($purchases as $p){ $template->previous[$o->id()]['purchases'][$p->id()] = array( - 'name' => $o->name(), - 'price' => $o->price(), - 'type' => $o->type() + 'name' => $p->name(), + 'price' => $p->price(), + 'type' => $p->type() ); } } @@ -39,9 +39,9 @@ class Page_Index extends Page { foreach($purchases as $p){ $template->new[$p->id()] = array( - 'name' => $o->name(), - 'price' => $o->price(), - 'type' => $o->type(), + 'name' => $p->name(), + 'price' => $p->price(), + 'type' => $p->type(), 'delete' => $system->url('delete', $p->id()) ); } -- 2.34.1