Skip to content

Commit

Permalink
Generate globally unique Twitter app name, closes #1163
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Feb 8, 2012
1 parent af063e7 commit 6180916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -117,6 +117,7 @@ public function authControl() {

$this->addToView('owner_instances', $owner_instances);
$this->addToView('oauthorize_link', $oauthorize_link);
$this->addToView('twitter_app_name', "ThinkUp ". $_SERVER['SERVER_NAME']);
$this->addToView('is_configured', true);
} else {
//set error message here
Expand Down
4 changes: 2 additions & 2 deletions webapp/plugins/twitter/view/twitter.account.index.tpl
Expand Up @@ -61,8 +61,8 @@
<ol style="margin-left:40px"><li><a href="https://dev.twitter.com/apps/new" target="_blank" style="text-decoration: underline;">Create a new application on Twitter for ThinkUp</a>.</li>
<li>
Fill in the following settings.<br />
Name: <span style="font-family:Courier;">ThinkUp</span><br />
Description: <span style="font-family:Courier;">My ThinkUp server</span><br />
Name: <span style="font-family:Courier;">{$twitter_app_name}</span><br />
Description: <span style="font-family:Courier;">My ThinkUp installation</span><br />
Website:
<small>
<code style="font-family:Courier;" id="clippy_2987">http{if $smarty.server.HTTPS}s{/if}://{$smarty.server.SERVER_NAME}{$site_root_path}</code>
Expand Down

0 comments on commit 6180916

Please sign in to comment.