testing a thing
This commit is contained in:
parent
eb25307f23
commit
5205b8b6e9
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,11 @@ namespace Sakura;
|
||||||
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) . '_sakura/sakura.php';
|
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) . '_sakura/sakura.php';
|
||||||
|
|
||||||
// Attempt to get a topic
|
// 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
|
// Check if the forum exists
|
||||||
if (!$topic) {
|
if (!$topic) {
|
||||||
|
|
Reference in a new issue