From aa27a22f7ca12caa89e6ccddf7c399cb619ab49d Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Thu, 29 Aug 2013 08:17:32 +1000 Subject: [PATCH] wtf? duplicate code --- inc/functions.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index e2289ef1..c0cf47b1 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1776,12 +1776,6 @@ function buildThread($id, $return = false, $mod = false) { $jsonFilename = $board['dir'] . $config['dir']['res'] . $id . '.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) {