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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Mon, 17 Jan 2011 21:23:13 +0000

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

Log:
Return more information from DB when we retrieve a file from work table

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

Modified: web/doc-editor/trunk/php/File.php
===================================================================
--- web/doc-editor/trunk/php/File.php	2011-01-17 21:22:23 UTC (rev 307546)
+++ web/doc-editor/trunk/php/File.php	2011-01-17 21:23:13 UTC (rev 307547)
@@ -304,8 +304,11 @@

         $s = sprintf(
             'SELECT
+                `id` as fidDB,
                 `user`,
-                `anonymousIdent`
+                `anonymousIdent`,
+                `module` as fromModule,
+                `type` as ftype
              FROM
                 `work`
              WHERE
@@ -319,8 +322,6 @@
             $hereName
         );

-        //echo $s;
-
         $r = DBConnection::getInstance()->query($s);

         if( $r->num_rows == 0 ) {
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.