wtf? duplicate code
This commit is contained in:
parent
09027cd8ae
commit
aa27a22f7c
@ -1776,12 +1776,6 @@ function buildThread($id, $return = false, $mod = false) {
|
|||||||
$jsonFilename = $board['dir'] . $config['dir']['res'] . $id . '.json';
|
$jsonFilename = $board['dir'] . $config['dir']['res'] . $id . '.json';
|
||||||
file_write($jsonFilename, $json);
|
file_write($jsonFilename, $json);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($return) {
|
|
||||||
return $body;
|
|
||||||
} else {
|
|
||||||
file_write($board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $id), $body);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function rrmdir($dir) {
|
function rrmdir($dir) {
|
||||||
|
Loading…
Reference in New Issue
Block a user