Browse Source

comment 'buy' content element

master
Dom SP 2 years ago
parent
commit
08d77a69b2
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      app/modules/elementdispatcher.php

+ 6
- 3
app/modules/elementdispatcher.php View File

@@ -381,14 +381,17 @@ class ElementDispatcher {
break;
case 'buy':
// synopsis:
// buy:name:price
// TODO: become currency aware (now EURO is hardcoded)
$new = '';
if(count($request)>=2) {
if (count($request)>=2) {
$name=$request[1];
} else {
$name ="item";
$name="item";
}
if(count($request)>=3) {
if (count($request)>=3) {
$price=$request[2];
} else {
$price=1.0;

Loading…
Cancel
Save