Commit 228a62f886ca7bc621f15388d4e1518dd5bbce67

Authored by Neil Blakey-Milner
1 parent 1f208600

Fix logico - make sure we don't delete the stored file when on Windows.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5358 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/contents/BaseIndexer.php
... ... @@ -88,9 +88,11 @@ class KTBaseIndexerTrigger {
88 88 $tempstub = $this->command;
89 89 }
90 90 $myfilename = tempnam("/tmp", 'kt.' . $tempstub);
91   - $intermediate = tempnam("/tmp", 'kt.' . $tempstub);
92   - if (OS_WINDOWS && !@copy($sFile, $intermediate)) {
93   - return ;
  91 + if (OS_WINDOWS) {
  92 + $intermediate = tempnam("/tmp", 'kt.' . $tempstub);
  93 + if (!@copy($sFile, $intermediate)) {
  94 + return ;
  95 + }
94 96 } else {
95 97 $intermediate = $sFile;
96 98 }
... ...