From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:36:26 +0000 (+0000) Subject: Call purchase functions instead of order X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=13883501a0797d0322e1d9050c4ec5ff339f979c;p=hmb.git Call purchase functions instead of order --- 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()) ); }