главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Brigman <datyedyeguy@gmail.com>2014-02-03 20:10:00 -0500
committerHans Brigman <datyedyeguy@gmail.com>2014-02-03 20:10:00 -0500
commit96e26b5aa0f7380ffa916fb408f6a7f25055f757 (patch)
tree6b7651b00f301135d21a023a3bcda1e219259b95
parent135a983166f2a1259dd62205fb5223f41aec8272 (diff)
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.
-rwxr-xr-xbb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.sh b/bb.sh
index f866730..327b478 100755
--- a/bb.sh
+++ b/bb.sh
@@ -305,7 +305,7 @@ edit() {
twitter() {
[[ -z "$global_twitter_username" ]] && return
- if [[ "$global_disqus_username" ]]; then
+ if [[ -z "$global_disqus_username" ]]; then
echo "<p id='twitter'>$template_comments&nbsp;"
else
echo "<p id='twitter'><a href=\"$1#disqus_thread\">$template_comments</a> &nbsp;"