diff --git a/lib/indexer.php b/lib/indexer.php index f87f829..d3056f3 100644 --- a/lib/indexer.php +++ b/lib/indexer.php @@ -216,7 +216,19 @@ if (!isset($_GET['timestamp']) || !isset($prevIndexData["timestamps"]) || $_GET[ $output["gitDiff"] = $gitDiffData; } } - + + // If we have a data/git-content.php file + if (file_exists($docRoot.$ICEcoderDir."/data/git-content.php")) { + // Get serialized array back out of PHP file inside a comment block as git data for git content usage + $gitContent = file_get_contents($docRoot.$ICEcoderDir."/data/git-content.php"); + if (strpos($gitContent, "", "", $gitContent); + $gitContent = unserialize($gitContent); + $output["gitContent"] = $gitContent; + } + } + // Store the serialized array in PHP comment block for next time file_put_contents($docRoot.$ICEcoderDir."/data/index.php", ""); // Output what we have in our index...