Browse Source

Fix bugs

pull/255/head
Danang Probo Sayekti 10 years ago
parent
commit
0df2146ce1
6 changed files with 8 additions and 8 deletions
  1. +1
    -1
      system/admin/views/login.html.php
  2. +3
    -3
      system/includes/functions.php
  3. +1
    -1
      themes/blog/main.html.php
  4. +1
    -1
      themes/clean/main.html.php
  5. +1
    -1
      themes/default/main.html.php
  6. +1
    -1
      themes/logs/main.html.php

+ 1
- 1
system/admin/views/login.html.php View File

@ -17,7 +17,7 @@
}
} ?>" name="password"/><br><br>
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
<?php if (config("google.reCaptcha")): ?>
<?php if (config('google.reCaptcha') === 'true'): ?>
<script src='https://www.google.com/recaptcha/api.js'></script>
<div class="g-recaptcha" data-sitekey="<?php echo config("google.reCaptcha.public"); ?>"></div>
<br/>


+ 3
- 3
system/includes/functions.php 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";


+ 1
- 1
themes/blog/main.html.php View File

@ -1,7 +1,7 @@
<?php if (!empty($breadcrumb)): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info')):?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="section">
<div class="section-inner">


+ 1
- 1
themes/clean/main.html.php View File

@ -1,7 +1,7 @@
<?php if (!empty($breadcrumb)): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info')):?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>


+ 1
- 1
themes/default/main.html.php View File

@ -1,7 +1,7 @@
<?php if (!empty($breadcrumb)): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info')):?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>


+ 1
- 1
themes/logs/main.html.php View File

@ -1,7 +1,7 @@
<?php if (!empty($breadcrumb)): ?>
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
<?php endif; ?>
<?php if (config('category.info')):?>
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="category">
<h2 class="category-title"><?php echo $category->title;?></h2>


Loading…
Cancel
Save