diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-07 15:27:46 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-07 15:27:46 +1000 |
| commit | b0a44e1a5cdee1c7f726cd4816289d3a58d45729 (patch) | |
| tree | f3945e1884f6ec58baa5b1893a867c403211df61 /templates | |
| parent | 7d03e2c5272792506cd821ff3001aed50435837f (diff) | |
various typos
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/themes/rrdtool/cron.php | 2 | ||||
| -rw-r--r-- | templates/themes/rrdtool/theme.php | 4 |
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']; |
