Skip to content
Snippets Groups Projects
Commit b972c155 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #698 from greezybacon/issue/root-dir


ROOT_DIR should be used to identify filesystem paths

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 1f51a724 6505fb74
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ if(!strcasecmp(basename($_SERVER['SCRIPT_NAME']),basename(__FILE__)) || !defined
#Install flag
define('OSTINSTALLED',FALSE);
if(OSTINSTALLED!=TRUE){
if(!file_exists(ROOT_PATH.'setup/install.php')) die('Error: Contact system admin.'); //Something is really wrong!
if(!file_exists(ROOT_DIR.'setup/install.php')) die('Error: Contact system admin.'); //Something is really wrong!
//Invoke the installer.
header('Location: '.ROOT_PATH.'setup/install.php');
exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment