]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
Merge branch 'fclose-before-unlink-updater' into 'master'
[tt-rss.git] / update.php
index 54401f99acfbffd2476bb4594954b25771fa64c2..65cf9f06efbea909b923a305abf6d954dca1b020 100755 (executable)
                        for ($i = $updater->getSchemaVersion() + 1; $i <= SCHEMA_VERSION; $i++) {
                                _debug("performing update up to version $i...");
 
-                               $result = $updater->performUpdateTo($i);
+                               $result = $updater->performUpdateTo($i, false);
 
                                _debug($result ? "OK!" : "FAILED!");
 
        PluginHost::getInstance()->run_commands($options);
 
        if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
+               if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
+                       fclose($lock_handle);
                unlink(LOCK_DIRECTORY . "/$lock_filename");
 ?>