Merge pull request #16 from MarkMaldaba/shorttag_fix

Follow-up to commit fa7ad2f45ddea003258b0448fd1038650ec2f66b...
This commit is contained in:
Dan Cryer 2013-05-15 08:35:28 -07:00
commit 20bb2e7a10

View file

@ -68,7 +68,7 @@ $(document).ready(function()
// Show sign in with Github button.
var el = $('#element-reference');
var rtn = <?= json_encode((empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>;
var rtn = <?php print json_encode((empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>;
var url = 'https://github.com/login/oauth/authorize?client_id=' + window.github_app_id + '&scope=repo&redirect_uri=' + rtn;
var btn = $('<a>').addClass('btn btn-inverse').text('Sign in with Github').attr('href', url);