This commit is contained in:
Danang Probo Sayekti 2015-08-29 10:47:48 +07:00
commit 0df2146ce1
6 changed files with 8 additions and 8 deletions

View file

@ -347,7 +347,7 @@ function get_posts($posts, $page = 1, $perpage = 0)
// Get the contents and convert it to HTML
$post->body = MarkdownExtra::defaultTransform(remove_html_comments($content));
if (config("views.counter")) {
if (config('views.counter') == 'true') {
$post->views = get_views($post->file);
}
@ -737,7 +737,7 @@ function get_static_post($static)
$post->title = get_content_tag('t', $content, $static);
$post->body = MarkdownExtra::defaultTransform(remove_html_comments($content));
if (config("views.counter")) {
if (config('views.counter') == 'true') {
$post->views = get_views($post->file);
}
@ -2480,7 +2480,7 @@ function remove_html_comments($content)
// Google recaptcha
function isCaptcha($reCaptchaResponse)
{
if (!config("google.reCaptcha")) {
if (config('google.reCaptcha') == 'false') {
return true;
}
$url = "https://www.google.com/recaptcha/api/siteverify";