Correct function calls for purchase info
authorRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:35:08 +0000 (23:35 +0000)
committerRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:35:08 +0000 (23:35 +0000)
pages/index.php

index ddaa9be06f1cc4e94f1bcbd4abfd523a5d60144f..6bcb10d6c5851325e3018fce5e83c0c36c51f870 100644 (file)
@@ -18,15 +18,14 @@ class Page_Index extends Page {
 
                                $template->previous[$o->id()] = array(
                                        'number' => $o->id(),
-                                       'paid' => $o->paid(),
-                                       'url' => $system->url('order',$o->id())
+                                       'paid' => $o->paid()
                                );
 
                                foreach($purchases as $p){
                                        $template->previous[$o->id()]['purchases'][$p->id()] = array(
                                                'name' => $o->name(),
                                                'price' => $o->price(),
-                                               'dining' => $o->dining()
+                                               'type' => $o->type()
                                        );
                                }
                        }
@@ -42,7 +41,7 @@ class Page_Index extends Page {
                                        $template->new[$p->id()] = array(
                                                'name' => $o->name(),
                                                'price' => $o->price(),
-                                               'dining' => $o->dining(),
+                                               'type' => $o->type(),
                                                'delete' => $system->url('delete', $p->id())
                                        );
                                }