mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Reorganized structure; 404 support
This commit is contained in:
@ -21,13 +21,6 @@ abstract class AbstractController
|
||||
|
||||
public function workWrapper($workCallback)
|
||||
{
|
||||
session_start();
|
||||
$this->context->layoutName = isset($_GET['json'])
|
||||
? 'layout-json'
|
||||
: 'layout-normal';
|
||||
$this->context->transport = new StdClass;
|
||||
$this->context->transport->success = null;
|
||||
|
||||
$this->attachUser();
|
||||
|
||||
try
|
||||
@ -40,10 +33,5 @@ abstract class AbstractController
|
||||
$this->context->transport->exception = $e;
|
||||
$this->context->transport->success = false;
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
$this->context->exception = $e;
|
||||
$this->context->viewName = 'error-exception';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user