-// Filter for checking and updating SVN revision
-function FILTER_CHECK_REPOSITORY_REVISION () {
- // Only execute this filter if installed and all config entries are there
- if ((!isInstalled()) || (!isConfigEntrySet('patch_level'))) {
- return;
- } // END - if
-
- // Check for patch level differences between database and current hard-coded
- if ((getCurrentRepositoryRevision() > getConfig('patch_level')) || (getConfig('patch_level') == 'CURRENT_REPOSITORY_REVISION') || (getConfig('patch_ctime') == 'UNIX_TIMES')) {
- // Update database and CONFIG array
- updateConfiguration(array('patch_level', 'patch_ctime'), array(getCurrentRepositoryRevision(), 'UNIX_TIMESTAMP()'));
- setConfigEntry('patch_level', getCurrentRepositoryRevision());
- setConfigEntry('patch_ctime', time());
- } // END - if
-}
-