File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
app/Http/Controllers/Admin Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 99use Pterodactyl \Contracts \Repository \UserRepositoryInterface ;
1010use Pterodactyl \Contracts \Repository \ServerRepositoryInterface ;
1111use Pterodactyl \Contracts \Repository \DatabaseRepositoryInterface ;
12+ use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
1213use Pterodactyl \Contracts \Repository \AllocationRepositoryInterface ;
1314
1415class StatisticsController extends Controller
@@ -45,6 +46,7 @@ public function __construct(
4546
4647 public function index ()
4748 {
49+ throw new NotFoundHttpException ;
4850 $ servers = $ this ->serverRepository ->all ();
4951 $ nodes = $ this ->nodeRepository ->all ();
5052 $ usersCount = $ this ->userRepository ->count ();
Original file line number Diff line number Diff line change 8080 <i class =" fa fa-home" ></i > <span >Overview</span >
8181 </a >
8282 </li >
83- <li class =" {{ Route:: currentRouteName () !== ' admin.statistics' ?: ' active' } }" >
84- <a href =" {{ route (' admin.statistics' ) } }" >
85- <i class =" fa fa-tachometer" ></i > <span >Statistics</span >
86- </a >
87- </li >
8883 <li class =" {{ ! starts_with (Route:: currentRouteName (), ' admin.settings' ) ?: ' active' } }" >
8984 <a href =" {{ route (' admin.settings' ) } }" >
9085 <i class =" fa fa-wrench" ></i > <span >Settings</span >
You can’t perform that action at this time.
0 commit comments