svn: /web/doc-editor/trunk/scripts/cron/ check_entities.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 28 Mar 2010 19:55:17 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=296995

Log:
Store checkEntities info

Changed paths:
    U   web/doc-editor/trunk/scripts/cron/check_entities.php

Modified: web/doc-editor/trunk/scripts/cron/check_entities.php
===================================================================
--- web/doc-editor/trunk/scripts/cron/check_entities.php	2010-03-28 19:54:43 UTC (rev 296994)
+++ web/doc-editor/trunk/scripts/cron/check_entities.php	2010-03-28 19:55:17 UTC (rev 296995)
@@ -7,7 +7,7 @@
 * 00 01 * * 4 /usr/bin/php /path/to/your/vcs/dir/doc-editor/scripts/cron/check_entities.php
 ****/

-require_once dirname(__FILE__) . '/../../php/conf.inc.php';
+require_once dirname(__FILE__) . '/../../php/Conf.php';
 require_once dirname(__FILE__) . '/../../php/LockFile.php';
 require_once dirname(__FILE__) . '/../../php/ProjectManager.php';
 require_once dirname(__FILE__) . '/../../php/RepositoryManager.php';
@@ -28,12 +28,14 @@

         ToolsCheckEntities::getInstance()->startCheck();

+        // Set lastUpdate date/time
+        $info = array();
+        $info['user']   = 'root';
+
+        $rm->setStaticValue('info', 'checkEntities', json_encode($info), true);
     }
     // Remove the lock File
-    $lock->release();;
-
-    // Set lastUpdate date/time
-    $rm->setLastUpdate('entities');
+    $lock->release();
 }

 ?>
\ No newline at end of file
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.