svn: /web/doc-editor/trunk/php/ RepositoryManager.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 30 Dec 2010 22:36:03 +0000

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

Log:
Store the date creation for a patch

Changed paths:
    U   web/doc-editor/trunk/php/RepositoryManager.php

Modified: web/doc-editor/trunk/php/RepositoryManager.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryManager.php	2010-12-30 22:33:44 UTC (rev 306888)
+++ web/doc-editor/trunk/php/RepositoryManager.php	2010-12-30 22:36:03 UTC (rev 306889)
@@ -638,13 +638,14 @@
         $s = sprintf(
             'INSERT INTO
                 `patches`
-                (`project`, `name`, `user`, `anonymousIdent`)
+                (`project`, `name`, `user`, `anonymousIdent`, `date`)
             VALUES
-                ("%s", "%s", "%s", "%s")',
+                ("%s", "%s", "%s", "%s", %s)',
             $project,
             $name,
             $vcsLogin,
-            $am->anonymousIdent
+            $am->anonymousIdent,
+            "now()"
         );
         $db->query($s);
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.