소스 검색

Get the login destination from the settings

FusionPBX 4 달 전
부모
커밋
37420e9354
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      login.php

+ 4 - 1
login.php

@@ -29,7 +29,10 @@
 //additional includes
 	require_once "resources/check_auth.php";
 
+//get the settings
+	$settings = new settings;
+
 //redirect to the dashboard
-	header("Location: ".PROJECT_PATH."/core/dashboard/");
+	header("Location: ".$settings->get('login', 'destination', PROJECT_PATH.'/core/dashboard/'));
 
 ?>