Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Looking for current revision does not work in git and fixes #74
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke committed Oct 27, 2015
1 parent b2ed478 commit 21d1097
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions includes/GeneralFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,13 @@ function ClearCache()
':ecoHash' => ''
));
clearstatcache();

/* does no work on git.
// Find currently Revision

$config = Config::get();

$version = explode('.', $config->VERSION);
$REV = 0;
$iterator = new RecursiveDirectoryIterator(ROOT_PATH);
Expand All @@ -397,6 +399,11 @@ function ClearCache()
}
$config->VERSION = $version[0].'.'.$version[1].'.'.$REV;
*/

$config = Config::get();
$version = explode('.', $config->VERSION);
$config->VERSION = $version[0].'.'.$version[1].'.'.'git';
$config->save();

}
Expand Down

0 comments on commit 21d1097

Please sign in to comment.