Finishing touch on the setup program... ready for 2.0 beta ??

SVN:trunk[2334]
This commit is contained in:
Denis Flaven
2012-10-24 07:30:43 +00:00
parent 721faa7e1e
commit 3c3c805298
4 changed files with 145 additions and 51 deletions

View File

@@ -24,7 +24,7 @@
* @license http://opensource.org/licenses/AGPL-3.0
*/
define ('KEYS_CACHE_FILE', APPROOT.'/keyscache.tmp');
define ('KEYS_CACHE_FILE', APPROOT.'data/keyscache.tmp');
/**
* Class to load sets of objects from XML files into the database
* XML files can be produced by the 'export' web service or by any other means
@@ -121,6 +121,10 @@ class XMLDataLoader
*/
protected function SaveKeysCache()
{
if (!is_dir(APPROOT.'data'))
{
mkdir(APPROOT.'data');
}
$hFile = @fopen($this->m_sCacheFileName, 'w');
if ($hFile !== false)
{