Skip to content

Commit 5974c0d

Browse files
committed
check include path
1 parent bb2b74a commit 5974c0d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

public/index.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
2-
require_once "../userfrosting/initialize.php";
2+
// This if-block just checks that the path for initialize.php is correct. Remove this once you know what you're doing.
3+
if (!file_exists("../userfrosting/initialize.php")){
4+
echo "<h2>We can't seem to find our way to initialize.php! Please check the require_once statement at the top of index.php, and make sure it contains the correct path to initialize.php.</h2><br>";
5+
}
6+
7+
// This is the path to initialize.php, your site's gateway to the rest of the UF codebase! Make sure that it is correct!
8+
require_once("../userfrosting/initialize.php");
39

410
use UserFrosting as UF;
511

0 commit comments

Comments
 (0)