Fix error with terms and controllers page

This commit is contained in:
DariusIII
2025-12-27 03:18:21 +01:00
parent 0c10e82787
commit ebb8aba72b
2 changed files with 2 additions and 2 deletions
@@ -16,7 +16,7 @@ class PrivacyPolicyController extends BasePageController
$meta_keywords = 'privacy,policy,data protection';
$meta_description = 'Privacy Policy for '.config('app.name');
// Get privacy policy content from settings (if available)
$privacy_content = $this->settings->privacy_policy ?? null;
$privacy_content = $this->settings->get('privacy_policy') ?? null;
return view('privacy-policy', compact('title', 'meta_title', 'meta_keywords', 'meta_description', 'privacy_content'));
}
+1 -1
View File
@@ -17,7 +17,7 @@ class TermsController extends BasePageController
$meta_description = 'Terms and Conditions for '.config('app.name');
// Get terms content from settings
$terms_content = $this->settings->tandc ?? '<p>No terms and conditions have been set yet.</p>';
$terms_content = $this->settings->get('tandc') ?? '<p>No terms and conditions have been set yet.</p>';
return view('terms', compact('title', 'meta_title', 'meta_keywords', 'meta_description', 'terms_content'));
}