Skip to content

Commit

Permalink
Simplify the upgrade process by automatically moving includes/config.…
Browse files Browse the repository at this point in the history
…php to the resources/config.php. As includes directory has been deprecated.
  • Loading branch information
markjcrane committed Aug 21, 2013
1 parent bdd7ed3 commit 604ccfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
//do nothing
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
//original directory
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")) {
//move config.php from the includes to resources directory.
rename($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php", $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php");
} elseif (file_exists("/etc/fusionpbx/config.php")){
//linux
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){
Expand Down

0 comments on commit 604ccfb

Please sign in to comment.