<?php
namespace wcf\page;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
/**
parent::assignVariables();
WCF::getTPL()->assign(array(
- 'message' => WCF::getLanguage()->get('wcf.paidSubscription.returnMessage')
+ 'message' => WCF::getLanguage()->get('wcf.paidSubscription.returnMessage'),
+ 'wait' => 60,
+ 'url' => LinkHandler::getInstance()->getLink()
));
}
}
// log success
$action = new PaidSubscriptionTransactionLogAction(array(), 'create', array('data' => array(
'subscriptionUserID' => $userSubscription->subscriptionUserID,
- 'user' => $user->userID,
+ 'userID' => $user->userID,
'subscriptionID' => $subscription->subscriptionID,
'paymentMethodObjectTypeID' => $paymentMethodObjectTypeID,
'logTime' => TIME_NOW,
// log failure
$action = new PaidSubscriptionTransactionLogAction(array(), 'create', array('data' => array(
'subscriptionUserID' => ($userSubscription !== null ? $userSubscription->subscriptionUserID : null),
- 'user' => ($user !== null ? $user->userID : null),
+ 'userID' => ($user !== null ? $user->userID : null),
'subscriptionID' => ($subscription !== null ? $subscription->subscriptionID : null),
'paymentMethodObjectTypeID' => $paymentMethodObjectTypeID,
'logTime' => TIME_NOW,