summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-21 22:43:35 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-21 22:43:35 +1000
commita83715dcb0c6f9bdb82f037b385f09870638963c (patch)
tree3dffff52a0f33464c651e0f05bc204c3e4d2073f /inc/functions.php
parentb01a402d23a1e7dd94ef2b9980a055c07d332f9d (diff)
single quotation marks please
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 76865882..c34adbcc 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1326,7 +1326,7 @@ function buildIndex() {
if ($config['api']['enabled']) {
$threads = $content['threads'];
$json = json_encode($api->translatePage($threads));
- $jsonFilename = $board['dir'] . ($page-1) . ".json"; // pages should start from 0
+ $jsonFilename = $board['dir'] . ($page - 1) . '.json'; // pages should start from 0
file_write($jsonFilename, $json);
$catalog[$page-1] = $threads;
@@ -1338,7 +1338,7 @@ function buildIndex() {
$filename = $board['dir'] . ($page==1 ? $config['file_index'] : sprintf($config['file_page'], $page));
file_unlink($filename);
- $jsonFilename = $board['dir'] . ($page-1) . ".json";
+ $jsonFilename = $board['dir'] . ($page - 1) . '.json';
file_unlink($jsonFilename);
}
}
@@ -1346,7 +1346,7 @@ function buildIndex() {
// json api catalog
if ($config['api']['enabled']) {
$json = json_encode($api->translateCatalog($catalog));
- $jsonFilename = $board['dir'] . "catalog.json";
+ $jsonFilename = $board['dir'] . 'catalog.json';
file_write($jsonFilename, $json);
}
}
@@ -1773,7 +1773,7 @@ function buildThread($id, $return = false, $mod = false) {
if ($config['api']['enabled']) {
$api = new Api();
$json = json_encode($api->translateThread($thread));
- $jsonFilename = $board['dir'] . $config['dir']['res'] . $id . ".json";
+ $jsonFilename = $board['dir'] . $config['dir']['res'] . $id . '.json';
file_write($jsonFilename, $json);
}