sensiolabs fixes
This commit is contained in:
parent
99788b2539
commit
5ce8c55ebf
3 changed files with 4 additions and 4 deletions
|
@ -219,10 +219,10 @@ class PostController extends Controller
|
||||||
if ($noAccess || $noDelete) {
|
if ($noAccess || $noDelete) {
|
||||||
if ($noDelete) {
|
if ($noDelete) {
|
||||||
$message = "You aren't allowed to delete posts in this topic!";
|
$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 {
|
} else {
|
||||||
$message = "This post doesn't exist or you don't have access to it!";
|
$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'));
|
return view('global/information', compact('message', 'redirect'));
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace Sakura\Middleware;
|
||||||
* @package Sakura
|
* @package Sakura
|
||||||
* @author Julian van de Groep <me@flash.moe>
|
* @author Julian van de Groep <me@flash.moe>
|
||||||
*/
|
*/
|
||||||
interface Middleware
|
interface MiddlewareInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Runs the middleware task.
|
* Runs the middleware task.
|
|
@ -13,7 +13,7 @@ use Sakura\ActiveUser;
|
||||||
* @package Sakura
|
* @package Sakura
|
||||||
* @author Julian van de Groep <me@flash.moe>
|
* @author Julian van de Groep <me@flash.moe>
|
||||||
*/
|
*/
|
||||||
class UpdateLastOnline implements Middleware
|
class UpdateLastOnline implements MiddlewareInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Update the last online information for the active user.
|
* Update the last online information for the active user.
|
||||||
|
|
Reference in a new issue