diff --git a/app/Controllers/Forum/PostController.php b/app/Controllers/Forum/PostController.php index 402a05f..2a66d0c 100644 --- a/app/Controllers/Forum/PostController.php +++ b/app/Controllers/Forum/PostController.php @@ -219,10 +219,10 @@ class PostController extends Controller if ($noAccess || $noDelete) { if ($noDelete) { $message = "You aren't allowed to delete posts in this topic!"; - $redirect = Router::route('forums.post', $post->id); + $redirect = route('forums.post', $post->id); } else { $message = "This post doesn't exist or you don't have access to it!"; - $redirect = Router::route('forums.index'); + $redirect = route('forums.index'); } return view('global/information', compact('message', 'redirect')); diff --git a/app/Middleware/Middleware.php b/app/Middleware/MiddlewareInterface.php similarity index 90% rename from app/Middleware/Middleware.php rename to app/Middleware/MiddlewareInterface.php index 6682f16..82e8c07 100644 --- a/app/Middleware/Middleware.php +++ b/app/Middleware/MiddlewareInterface.php @@ -11,7 +11,7 @@ namespace Sakura\Middleware; * @package Sakura * @author Julian van de Groep */ -interface Middleware +interface MiddlewareInterface { /** * Runs the middleware task. diff --git a/app/Middleware/UpdateLastOnline.php b/app/Middleware/UpdateLastOnline.php index aa36a0f..7ab8f68 100644 --- a/app/Middleware/UpdateLastOnline.php +++ b/app/Middleware/UpdateLastOnline.php @@ -13,7 +13,7 @@ use Sakura\ActiveUser; * @package Sakura * @author Julian van de Groep */ -class UpdateLastOnline implements Middleware +class UpdateLastOnline implements MiddlewareInterface { /** * Update the last online information for the active user.