1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #181 - Connecting to Patreon sits at "Waiting for Patreon..."

When I added transactions to everything a while back I neglected to notice that the Patreon initialize echoes some JavaScript and then dies. The die() was rolling back the transaction where the token and stuff got inserted.
This commit is contained in:
Jon Ziebell 2019-11-07 08:38:06 -05:00
parent 62970192ef
commit f0fe1b1760

View File

@ -43,6 +43,10 @@ class patreon extends external_api {
} }
echo '<html><head><title></title></head><body><script type="text/javascript">window.close();</script></body>'; echo '<html><head><title></title></head><body><script type="text/javascript">window.close();</script></body>';
// Need to commit the transaction so the stuff gets saved.
$this->database->commit_transaction();
die(); die();
} }