Stop Disqus "Comemnts?" link with no username
The twitter() method wasn't checking for an empty string for global_disqus_username, so it would always generate the anchor tag for the Disqus comments, even if global_disqus_username was an empty string. Now the '-z' flag has been added to check for the empty string correctly.
This commit is contained in:
parent
135a983166
commit
96e26b5aa0
1 changed files with 1 additions and 1 deletions
2
bb.sh
2
bb.sh
|
@ -305,7 +305,7 @@ edit() {
|
||||||
twitter() {
|
twitter() {
|
||||||
[[ -z "$global_twitter_username" ]] && return
|
[[ -z "$global_twitter_username" ]] && return
|
||||||
|
|
||||||
if [[ "$global_disqus_username" ]]; then
|
if [[ -z "$global_disqus_username" ]]; then
|
||||||
echo "<p id='twitter'>$template_comments "
|
echo "<p id='twitter'>$template_comments "
|
||||||
else
|
else
|
||||||
echo "<p id='twitter'><a href=\"$1#disqus_thread\">$template_comments</a> "
|
echo "<p id='twitter'><a href=\"$1#disqus_thread\">$template_comments</a> "
|
||||||
|
|
Loading…
Add table
Reference in a new issue