Skip to content

Commit

Permalink
Facebook plugin: Fix installation path bug in OAuth re-authorization …
Browse files Browse the repository at this point in the history
…notification email
  • Loading branch information
ginatrapani committed Sep 6, 2012
1 parent 09c8795 commit 56a7376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion webapp/plugins/facebook/model/class.FacebookPlugin.php
Expand Up @@ -114,7 +114,8 @@ private function sendInvalidOAuthEmailAlert($email, $username) {
$mailer_view_mgr = new ViewManager();
$mailer_view_mgr->caching=false;
$server = $_SERVER['HTTP_HOST'];
$mailer_view_mgr->assign('server', $server );
$mailer_view_mgr->assign('thinkup_site_url', Utils::getApplicationURL());

$mailer_view_mgr->assign('email', $email );
$mailer_view_mgr->assign('faceboook_user_name', $username);
$message = $mailer_view_mgr->fetch(Utils::getPluginViewDirectory('facebook').'_email.invalidtoken.tpl');
Expand Down
2 changes: 1 addition & 1 deletion webapp/plugins/facebook/view/_email.invalidtoken.tpl
Expand Up @@ -5,7 +5,7 @@ you change your password or other authorization settings.
The good news is, it's easy to fix. You'll just need to click on "Add a Facebook User" in ThinkUp's settings,
at this link:

http{if $smarty.server.HTTPS}s{/if}://{$server}{$site_root_path|escape:'urlpathinfo'}account/?p=facebook
{$thinkup_site_url}account/?p=facebook

(If you're not logged in, it'll ask you to log in to ThinkUp or Facebook, as needed.)

Expand Down

0 comments on commit 56a7376

Please sign in to comment.