summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/themes/rrdtool/cron.php2
-rw-r--r--templates/themes/rrdtool/theme.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/themes/rrdtool/cron.php b/templates/themes/rrdtool/cron.php
index ec140897..29afce54 100644
--- a/templates/themes/rrdtool/cron.php
+++ b/templates/themes/rrdtool/cron.php
@@ -1,6 +1,6 @@
<?php
$_SERVER = Array('REQUEST_URI' => '', 'HTTP_HOST' => '', 'SCRIPT_FILENAME' => '');
- chdir('../../..');
+ chdir('../../../');
require 'inc/functions.php';
require 'inc/display.php';
diff --git a/templates/themes/rrdtool/theme.php b/templates/themes/rrdtool/theme.php
index 37b92cd9..22bb5690 100644
--- a/templates/themes/rrdtool/theme.php
+++ b/templates/themes/rrdtool/theme.php
@@ -41,8 +41,8 @@
if($action == 'cron') {
$query = prepare(sprintf("SELECT COUNT(*) AS `count` FROM `posts_%s` WHERE `time` >= :time", $board));
- $query->bindValue(':time', time() - $this->interval, PDO::PARAM_INT):
- $query->exeucte() or error(db_error($query));
+ $query->bindValue(':time', time() - $this->interval, PDO::PARAM_INT);
+ $query->execute() or error(db_error($query));
$count = $query->fetch();
$count = $count['count'];