mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
Fix bugs
This commit is contained in:
parent
8d4eb88f32
commit
0df2146ce1
6 changed files with 8 additions and 8 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue