testing a thing

This commit is contained in:
flash 2015-10-11 23:59:17 +02:00
parent eb25307f23
commit 5205b8b6e9

View file

@ -10,7 +10,11 @@ namespace Sakura;
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) . '_sakura/sakura.php';
// Attempt to get a topic
$topic = Forum::getTopic(isset($_GET['p']) ? Forum::getTopicIdFromPostId($_GET['p']) : (isset($_GET['t']) ? $_GET['t'] : 0));
$topic = Forum::getTopic(
isset($_GET['p'])
? Forum::getTopicIdFromPostId($_GET['p'])
: (isset($_GET['t']) ? $_GET['t'] : 0)
);
// Check if the forum exists
if (!$topic) {