diff --git a/templates/homepage/recent/theme.php b/templates/homepage/recent/theme.php index f7c5da45..8af0862d 100644 --- a/templates/homepage/recent/theme.php +++ b/templates/homepage/recent/theme.php @@ -25,7 +25,7 @@ if($action == 'all' || $action == 'post') // file_put_contents($config['dir']['home'] . $config['file_index'], $this->homepage($settings)); - file_put_contents($config['dir']['home'] . 'recent.html', $this->homepage($settings)); + file_write($config['dir']['home'] . 'recent.html', $this->homepage($settings)); } // Build news page @@ -118,7 +118,7 @@ $query = preg_replace('/UNION ALL $/', ') AS `posts_all`', $query); $query = query($query) or error(db_error()); $res = $query->fetch(); - $body .= '