Skip to content
Snippets Groups Projects
Commit 9de1a046 authored by Sibidharan's avatar Sibidharan :speech_balloon:
Browse files

Merge branch 'gopis' into 'master'

fix base path

See merge request sibidharan/php-class-project!4
parents 75099a5f 25d82d3d
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ include_once 'includes/UserSession.class.php';
global $__site_config;
// global $__base_path;
//Note: Change this path if you run this code outside lab.
$__site_config = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/../photogramconfig.json');
$__site_config_path = dirname(is_link($_SERVER['DOCUMENT_ROOT']) ? readlink($_SERVER['DOCUMENT_ROOT']) : $_SERVER['DOCUMENT_ROOT']).'/photogramconfig.json';
$__site_config = file_get_contents($__site_config_path);
// $__base_path = get_config('base_path');
Session::start();
......
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