Completed
Push — master ( 9d10c2...bf46e5 )
by Lars
05:14
created
src/Intraface/modules/payment/Controller/templates/index.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         <?php if ($payment['is_stated']) : ?>
67 67
         <td><?php e(t('Yes')); ?></td>
68 68
         <?php else : ?>
69
-        <td><a href="<?php e(url($payment['id'] . '/state')); ?>"><?php e(t('No')); ?></a></td>
69
+        <td><a href="<?php e(url($payment['id'].'/state')); ?>"><?php e(t('No')); ?></a></td>
70 70
         <?php endif; ?>
71 71
 
72 72
     </tr>
Please login to merge, or discard this patch.
src/Intraface/modules/payment/Controller/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     function renderHtml()
24 24
     {
25
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/index');
25
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/index');
26 26
         return $smarty->render($this);
27 27
     }
28 28
 
Please login to merge, or discard this patch.
src/Intraface/modules/product/Variation/Detail.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function getPriceInCurrency($currency, $exchange_rate_id = 0, $product)
101 101
     {
102
-        return new Ilib_Variable_Float(round($this->getPrice($product)->getAsIso() / ($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso() / 100), 2));
102
+        return new Ilib_Variable_Float(round($this->getPrice($product)->getAsIso()/($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso()/100), 2));
103 103
     }
104 104
 
105 105
     /**
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
     public function getPriceIncludingVat($product)
115 115
     {
116 116
         if (get_class($product) == 'Intraface_modules_product_ProductDoctrine') {
117
-            return new Ilib_Variable_Float($this->getPrice($product)->getAsIso(2) * (1 + $product->getDetails()->getVatPercent()->getAsIso()/100));
117
+            return new Ilib_Variable_Float($this->getPrice($product)->getAsIso(2)*(1 + $product->getDetails()->getVatPercent()->getAsIso()/100));
118 118
         } else {
119
-            return new Ilib_Variable_Float($this->getPrice($product)->getAsIso(2) * (1 + $product->get('vat_percent')/100));
119
+            return new Ilib_Variable_Float($this->getPrice($product)->getAsIso(2)*(1 + $product->get('vat_percent')/100));
120 120
         }
121 121
     }
122 122
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function getPriceIncludingVatInCurrency($currency, $exchange_rate_id, $product)
135 135
     {
136
-        return new Ilib_Variable_Float($this->getPriceIncludingVat($product)->getAsIso() / ($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso() / 100));
136
+        return new Ilib_Variable_Float($this->getPriceIncludingVat($product)->getAsIso()/($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso()/100));
137 137
     }
138 138
 
139 139
     /**
Please login to merge, or discard this patch.
src/Intraface/modules/product/Gateway.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
                 'INNER',
140 140
                 'ilib_category',
141 141
                 'ilib_category_append.category_id = ilib_category.id',
142
-                'ilib_category.intranet_id = '.$this->kernel->intranet->getId(). ' ' .
143
-                    'AND ilib_category.belong_to = '.$category_type->getBelongTo().' ' .
142
+                'ilib_category.intranet_id = '.$this->kernel->intranet->getId().' '.
143
+                    'AND ilib_category.belong_to = '.$category_type->getBelongTo().' '.
144 144
                 'AND ilib_category.belong_to_id = '.$category_type->getBelongToId()
145 145
             );
146 146
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
             // den her skal vist lige kigges igennem, for den tager jo alt med p� nettet?
209 209
             // 0 = only stock
210
-            if ($this->kernel->setting->get('intranet', 'webshop.show_online') == 0 and $which=='webshop') { // only stock
210
+            if ($this->kernel->setting->get('intranet', 'webshop.show_online') == 0 and $which == 'webshop') { // only stock
211 211
                 if (array_key_exists('for_sale', $products[$i]['stock_status']) and $products[$i]['stock_status']['for_sale'] <= 0) {
212 212
                     continue;
213 213
                 }
Please login to merge, or discard this patch.
src/Intraface/modules/product/Product/Details.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -73,15 +73,15 @@  discard block
 block discarded – undo
73 73
             //->innerJoin('Intraface_modules_product_ProductDoctrine.details AS details')
74 74
             //->addWhere('active = 1')
75 75
             ->addWhere('active = 1')
76
-            ->addWhere('number = ' . $this->number)
77
-            ->addWhere('intranet_id = ' . $this->intranet_id)
78
-            ->addWhere('product_id <> ' . $product_id);
76
+            ->addWhere('number = '.$this->number)
77
+            ->addWhere('intranet_id = '.$this->intranet_id)
78
+            ->addWhere('product_id <> '.$product_id);
79 79
 
80 80
         // not necessary to execute query when counting
81 81
         //$collection = $dql->execute();
82 82
 
83 83
         if ($dql->count() > 0) {
84
-            $this->getErrorStack()->add('number', $this->number . ' has already been added');
84
+            $this->getErrorStack()->add('number', $this->number.' has already been added');
85 85
         }
86 86
 
87 87
         return true;
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public function getPriceInCurrency($currency, $exchange_rate_id = 0)
214 214
     {
215
-        return new Ilib_Variable_Float(round($this->getPrice()->getAsIso() / ($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso() / 100), 2));
215
+        return new Ilib_Variable_Float(round($this->getPrice()->getAsIso()/($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso()/100), 2));
216 216
     }
217 217
 
218 218
     /**
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      */
223 223
     public function getPriceIncludingVat()
224 224
     {
225
-        return new Ilib_Variable_Float($this->getPrice()->getAsIso(2) * (1 + $this->getVatPercent()->getAsIso()/100));
225
+        return new Ilib_Variable_Float($this->getPrice()->getAsIso(2)*(1 + $this->getVatPercent()->getAsIso()/100));
226 226
     }
227 227
 
228 228
     /**
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function getPriceIncludingVatInCurrency($currency, $exchange_rate_id)
236 236
     {
237
-        return new Ilib_Variable_Float($this->getPriceIncludingVat()->getAsIso() / ($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso() / 100));
237
+        return new Ilib_Variable_Float($this->getPriceIncludingVat()->getAsIso()/($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso()/100));
238 238
     }
239 239
 
240 240
     public function setBeforePrice(Ilib_Variable_Float $value)
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     public function getBeforePriceInCurrency($currency, $exchange_rate_id = 0)
264 264
     {
265
-        return new Ilib_Variable_Float(round($this->getBeforePrice($product)->getAsIso() / ($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso() / 100), 2));
265
+        return new Ilib_Variable_Float(round($this->getBeforePrice($product)->getAsIso()/($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso()/100), 2));
266 266
     }
267 267
 
268 268
     /**
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      */
273 273
     public function getBeforePriceIncludingVat()
274 274
     {
275
-        return new Ilib_Variable_Float($this->getBeforePrice()->getAsIso(2) * (1 + $this->getVatPercent()->getAsIso()/100));
275
+        return new Ilib_Variable_Float($this->getBeforePrice()->getAsIso(2)*(1 + $this->getVatPercent()->getAsIso()/100));
276 276
     }
277 277
 
278 278
     /**
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     public function getBeforePriceIncludingVatInCurrency($currency, $exchange_rate_id)
286 286
     {
287
-        return new Ilib_Variable_Float($this->getBeforePriceIncludingVat()->getAsIso() / ($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso() / 100));
287
+        return new Ilib_Variable_Float($this->getBeforePriceIncludingVat()->getAsIso()/($currency->getProductPriceExchangeRate((int)$exchange_rate_id)->getRate()->getAsIso()/100));
288 288
     }
289 289
 
290 290
     /**
Please login to merge, or discard this patch.
src/Intraface/modules/product/Product/X/Attribute/Group.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         
25 25
         $this->hasOne(
26 26
             'Intraface_modules_product_Attribute_Group as attribute_group',
27
-            array('local' => 'product_attribute_group_id','foreign' => 'id')
27
+            array('local' => 'product_attribute_group_id', 'foreign' => 'id')
28 28
         );
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Intraface/modules/product/Product.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
     public function load()
147 147
     {
148 148
         $this->db->query("SELECT id, active, locked, changed_date, ".implode(',', $this->fields)." FROM product
149
-                WHERE intranet_id = " . $this->kernel->intranet->getId() . "
150
-                    AND id = " . $this->id . " LIMIT 1");
149
+                WHERE intranet_id = " . $this->kernel->intranet->getId()."
150
+                    AND id = " . $this->id." LIMIT 1");
151 151
 
152 152
         if (!$this->db->nextRecord()) {
153 153
             $this->value['id'] = 0;
@@ -396,13 +396,13 @@  discard block
 block discarded – undo
396 396
 
397 397
         if ($this->id > 0) {
398 398
             $sql_type = "UPDATE ";
399
-            $sql_end  = " WHERE id = " . $this->id . " AND intranet_id = " . $this->intranet->getId();
399
+            $sql_end  = " WHERE id = ".$this->id." AND intranet_id = ".$this->intranet->getId();
400 400
         } else {
401 401
             $sql_type = "INSERT INTO";
402
-            $sql_end  = ", intranet_id = " . $this->intranet->getId();
402
+            $sql_end  = ", intranet_id = ".$this->intranet->getId();
403 403
         }
404 404
 
405
-        $this->db->query($sql_type . " product SET ".$sql." changed_date = NOW()"    . $sql_end);
405
+        $this->db->query($sql_type." product SET ".$sql." changed_date = NOW()".$sql_end);
406 406
 
407 407
         if (empty($this->id)) {
408 408
             $this->id = $this->db->insertedId();
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 
436 436
         $new_id = $product->save(
437 437
             array(
438
-                'name' => $this->get('name') . ' (kopi)',
438
+                'name' => $this->get('name').' (kopi)',
439 439
                 'description' => $this->get('description'),
440 440
                 'price' => amountToForm($this->get('price')), // make sure that this is formatted to local format
441 441
                 'weight' => (float)$this->get('weight'),
@@ -505,8 +505,8 @@  discard block
 block discarded – undo
505 505
         $db = new Db_Sql;
506 506
         $sql = "UPDATE product
507 507
             SET active = 0
508
-            WHERE id = " . $this->id. "
509
-                AND intranet_id = " . $this->intranet->getId() . "
508
+            WHERE id = " . $this->id."
509
+                AND intranet_id = " . $this->intranet->getId()."
510 510
                 AND locked = 0";
511 511
         $db->query($sql);
512 512
 
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
         $db = new Db_Sql;
530 530
         $sql = "UPDATE product
531 531
             SET active = 1
532
-            WHERE id = " . $this->id. "
532
+            WHERE id = " . $this->id."
533 533
                 AND intranet_id = " . $this->intranet->getId();
534 534
         $db->query($sql);
535 535
         $this->value['active'] = 1;
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
             FROM product
549 549
             INNER JOIN product_detail
550 550
                 ON product_detail.product_id = product.id
551
-            WHERE product.intranet_id = " . $this->intranet->getId() . "
551
+            WHERE product.intranet_id = " . $this->intranet->getId()."
552 552
             ORDER BY product_detail.number DESC LIMIT 1";
553 553
         $db->query($sql);
554 554
         if (!$db->nextRecord()) {
@@ -572,8 +572,8 @@  discard block
 block discarded – undo
572 572
          $sql = "SELECT product.id FROM product
573 573
           INNER JOIN product_detail detail
574 574
             ON product.id = detail.product_id
575
-            WHERE detail.number = '" . $product_number . "'
576
-                AND detail.product_id <> " . $this->id . "
575
+            WHERE detail.number = '" . $product_number."'
576
+                AND detail.product_id <> " . $this->id."
577 577
                 AND detail.active = 1
578 578
                 AND product.active=1
579 579
                 AND product.intranet_id = ".$this->intranet->getId()." LIMIT 1";
@@ -631,17 +631,17 @@  discard block
 block discarded – undo
631 631
         $db = new DB_Sql;
632 632
 
633 633
         if ($status == 'relate') {
634
-            $db->query("SELECT * FROM product_related WHERE product_id=" . $this->id  . " AND related_product_id = " . (int)$id . " AND intranet_id =" .$this->intranet->getId());
634
+            $db->query("SELECT * FROM product_related WHERE product_id=".$this->id." AND related_product_id = ".(int)$id." AND intranet_id =".$this->intranet->getId());
635 635
             if ($db->nextRecord()) {
636 636
                 return true;
637 637
             }
638 638
             if ($id == $this->id) {
639 639
                 return false;
640 640
             }
641
-            $db->query("INSERT INTO product_related SET product_id = " . $this->id . ", related_product_id = " . (int)$id . ", intranet_id = " . $this->intranet->getId());
641
+            $db->query("INSERT INTO product_related SET product_id = ".$this->id.", related_product_id = ".(int)$id.", intranet_id = ".$this->intranet->getId());
642 642
             return true;
643 643
         } else {
644
-            $db->query("DELETE FROM product_related WHERE product_id = " . $this->id . " AND intranet_id = " . $this->intranet->getId() . " AND related_product_id = " . (int)$id);
644
+            $db->query("DELETE FROM product_related WHERE product_id = ".$this->id." AND intranet_id = ".$this->intranet->getId()." AND related_product_id = ".(int)$id);
645 645
             return true;
646 646
         }
647 647
     }
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
     public function deleteRelatedProduct($id)
657 657
     {
658 658
         $db = new DB_Sql;
659
-        $db->query("DELETE FROM product_related WHERE product_id = " . $this->id . " AND intranet_id = " . $this->intranet->getId() . " AND related_product_id = " . (int)$id);
659
+        $db->query("DELETE FROM product_related WHERE product_id = ".$this->id." AND intranet_id = ".$this->intranet->getId()." AND related_product_id = ".(int)$id);
660 660
         return true;
661 661
     }
662 662
 
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
     public function deleteRelatedProducts()
671 671
     {
672 672
         $db = new DB_Sql;
673
-        $db->query("DELETE FROM product_related WHERE product_id = " . $this->id . " AND intranet_id = " . $this->intranet->getId());
673
+        $db->query("DELETE FROM product_related WHERE product_id = ".$this->id." AND intranet_id = ".$this->intranet->getId());
674 674
         return true;
675 675
     }
676 676
 
@@ -685,12 +685,12 @@  discard block
 block discarded – undo
685 685
         $key      = 0;
686 686
         $ids      = array();
687 687
         $db       = new DB_Sql;
688
-        $sql      = "SELECT related_product_id FROM product_related WHERE product_id = " . $this->id . " AND intranet_id = " . $this->intranet->getId();
688
+        $sql      = "SELECT related_product_id FROM product_related WHERE product_id = ".$this->id." AND intranet_id = ".$this->intranet->getId();
689 689
         $db->query($sql);
690 690
 
691 691
         // r�kkef�lgen er vigtig - f�rst hente fra product og bagefter tilf�je nye v�rdier til arrayet
692 692
         while ($db->nextRecord()) {
693
-            $product                      = new Product($this->kernel, $db->f('related_product_id'));
693
+            $product = new Product($this->kernel, $db->f('related_product_id'));
694 694
             if ($product->get('id') == 0 || $product->get('active') == 0 || ($show == 'webshop' && $product->get('do_show') == 0)) {
695 695
                 continue;
696 696
             }
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
             }
726 726
             // den her skal vist lige kigges igennem, for den tager jo alt med p� nettet?
727 727
             // 0 = only stock
728
-            if ($this->kernel->setting->get('intranet', 'webshop.show_online') == 0 and !empty($which) and $which=='webshop') { // only stock
728
+            if ($this->kernel->setting->get('intranet', 'webshop.show_online') == 0 and !empty($which) and $which == 'webshop') { // only stock
729 729
                 if (array_key_exists('for_sale', $products[$key]['stock_status']) and $products[$key]['stock_status']['for_sale'] <= 0) {
730 730
                     continue;
731 731
                 }
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
         }
755 755
 
756 756
         $db = MDB2::singleton(DB_DSN);
757
-        $result = $db->query("SELECT id FROM product_x_attribute_group WHERE intranet_id = ".$db->quote($this->intranet->getId())." AND product_id=" . $this->getId()  . " AND product_attribute_group_id = " . (int)$id);
757
+        $result = $db->query("SELECT id FROM product_x_attribute_group WHERE intranet_id = ".$db->quote($this->intranet->getId())." AND product_id=".$this->getId()." AND product_attribute_group_id = ".(int)$id);
758 758
         if (PEAR::isError($result)) {
759 759
             throw new Exception('Error in query :'.$result->getUserInfo());
760 760
         }
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
         if ($result->numRows() > 0) {
763 763
             return true;
764 764
         }
765
-        $result = $db->exec("INSERT INTO product_x_attribute_group SET product_id = " . $this->getId() . ", product_attribute_group_id = " . (int)$id . ", intranet_id = " . $this->intranet->getId());
765
+        $result = $db->exec("INSERT INTO product_x_attribute_group SET product_id = ".$this->getId().", product_attribute_group_id = ".(int)$id.", intranet_id = ".$this->intranet->getId());
766 766
         if (PEAR::isError($result)) {
767 767
             throw new Exception('Error in insert :'.$result->getUserInfo());
768 768
         }
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
         }
785 785
 
786 786
         $db = MDB2::singleton(DB_DSN);
787
-        $result = $db->exec("DELETE FROM product_x_attribute_group WHERE intranet_id = ".$db->quote($this->intranet->getId())." AND product_id=" . $this->getId()  . " AND product_attribute_group_id = " . (int)$id);
787
+        $result = $db->exec("DELETE FROM product_x_attribute_group WHERE intranet_id = ".$db->quote($this->intranet->getId())." AND product_id=".$this->getId()." AND product_attribute_group_id = ".(int)$id);
788 788
         if (PEAR::isError($result)) {
789 789
             throw new Exception('Error in query :'.$result->getUserInfo());
790 790
         }
@@ -812,12 +812,12 @@  discard block
 block discarded – undo
812 812
         // NOTE: Very important that it is ordered by product_attribute_group.id so the groups
813 813
         // does always get attached to the correct attribute number on the variation. Se above todo in method doc
814 814
         $db = MDB2::singleton(DB_DSN);
815
-        $result = $db->query("SELECT product_attribute_group.* FROM product_x_attribute_group " .
816
-                "INNER JOIN product_attribute_group " .
817
-                    "ON product_x_attribute_group.product_attribute_group_id = product_attribute_group.id " .
818
-                    "AND product_attribute_group.intranet_id = ".$db->quote($this->intranet->getId())." " .
819
-                "WHERE product_x_attribute_group.intranet_id = ".$db->quote($this->intranet->getId())." " .
820
-                    "AND product_x_attribute_group.product_id=" . $this->getId()  . " " .
815
+        $result = $db->query("SELECT product_attribute_group.* FROM product_x_attribute_group ".
816
+                "INNER JOIN product_attribute_group ".
817
+                    "ON product_x_attribute_group.product_attribute_group_id = product_attribute_group.id ".
818
+                    "AND product_attribute_group.intranet_id = ".$db->quote($this->intranet->getId())." ".
819
+                "WHERE product_x_attribute_group.intranet_id = ".$db->quote($this->intranet->getId())." ".
820
+                    "AND product_x_attribute_group.product_id=".$this->getId()." ".
821 821
                  "ORDER BY product_attribute_group.id");
822 822
 
823 823
         if (PEAR::isError($result)) {
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
     public function isFilledIn()
872 872
     {
873 873
         $db = new DB_Sql;
874
-        $db->query("SELECT count(*) AS antal FROM product WHERE intranet_id = " . $this->intranet->getId());
874
+        $db->query("SELECT count(*) AS antal FROM product WHERE intranet_id = ".$this->intranet->getId());
875 875
         if ($db->nextRecord()) {
876 876
             return $db->f('antal');
877 877
         }
@@ -886,7 +886,7 @@  discard block
 block discarded – undo
886 886
     public function any()
887 887
     {
888 888
         $db = new DB_Sql;
889
-        $db->query("SELECT id FROM product WHERE intranet_id = " . $this->intranet->getId()." AND active = 1");
889
+        $db->query("SELECT id FROM product WHERE intranet_id = ".$this->intranet->getId()." AND active = 1");
890 890
         return $db->numRows();
891 891
     }
892 892
 
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/Productattributegroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $data = array('product' => $product, 'groups' => $groups);
36 36
 
37
-        $smarty = $this->template->create(dirname(__FILE__) . '/tpl/productattributegroup');
37
+        $smarty = $this->template->create(dirname(__FILE__).'/tpl/productattributegroup');
38 38
         return $smarty->render($this, $data);
39 39
     }
40 40
 
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/Selectproduct.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
         $data = array('products' => $list);
94 94
 
95
-        $smarty = $this->template->create(dirname(__FILE__) . '/tpl/selectproduct');
95
+        $smarty = $this->template->create(dirname(__FILE__).'/tpl/selectproduct');
96 96
         return $smarty->render($this, $data);
97 97
     }
98 98
 
Please login to merge, or discard this patch.