Skip to content

fix site config path

GopiKrishnan requested to merge (removed):gopis into master

I have added a $site_config_path variable that automatically changes the data on the server, look at that code below bro.

$site_config_path = is_link($_SERVER["DOCUMENT_ROOT"]) ? dirname(readlink($_SERVER['DOCUMENT_ROOT'])) . '/photogramconfig.json' : $_SERVER["DOCUMENT_ROOT"] . "/../photogramconfig.json";
$__site_config = file_get_contents($site_config_path);

Merge request reports