summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-02-16 22:27:33 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-02-16 22:27:33 +0100
commit496f3dab20532e9ff4b0318b39f4ddc8290a418f (patch)
tree2f4c5dbdba218e643491d623c9cabb6bba17bd89 /src
parent568d83e1c6e9bb17bebeb681eec198dfc4eb546c (diff)
downloadmerchant-496f3dab20532e9ff4b0318b39f4ddc8290a418f.tar.gz
merchant-496f3dab20532e9ff4b0318b39f4ddc8290a418f.tar.bz2
merchant-496f3dab20532e9ff4b0318b39f4ddc8290a418f.zip
fixing the offering URL in blog
Diffstat (limited to 'src')
-rw-r--r--src/frontend_blog/essay_fulfillment.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/frontend_blog/essay_fulfillment.php b/src/frontend_blog/essay_fulfillment.php
index a0581de5..76f9e493 100644
--- a/src/frontend_blog/essay_fulfillment.php
+++ b/src/frontend_blog/essay_fulfillment.php
@@ -26,7 +26,7 @@
</svg>
</div>
- <h1>Toy Store - Product Page</h1>
+ <h3>Toy Store - Product Page</h3>
</header>
<aside class="sidebar" id="left">
@@ -75,10 +75,11 @@ session_start();
$payments = get($_SESSION['payments'], array());
$my_payment = get($payments[$hc]);
-// This will keep the query parameters.
+// This will keep the query parameters, so the paying script
+// can reconstruct the contract
$pay_url = url_rel("essay_pay.php");
-$offering_url = url_rel("essay_offer.php");
-$offering_url .= "?article=" . $_GET["article"];
+$offering_url = url_rel("essay_offer.php", true);
+$offering_url .= "?article=$article";
if (true !== get($my_payment["is_payed"], false) || null === $my_payment)
{