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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 12 Nov 2009 17:36:54 +0000

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

Log:
Remove manageLogMessage's method from class.php. This method is present in LogManager.php as addCommitLog's method

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

Modified: web/doc-editor/trunk/php/class.php
===================================================================
--- web/doc-editor/trunk/php/class.php	2009-11-12 17:36:37 UTC (rev 290593)
+++ web/doc-editor/trunk/php/class.php	2009-11-12 17:36:54 UTC (rev 290594)
@@ -855,25 +855,6 @@
     }

     /**
-     * Add (or not) a log message to the DB.
-     *
-     * @param $logMessage The log message to be added if it don't exist yet.
-     * @return Nothing.
-     */
-    function manageLogMessage($logMessage) {
-
-        $s = sprintf('SELECT id FROM `commitMessage` WHERE `text`="%s" AND `userID`="%s"', $this->db->real_escape_string($logMessage), $this->userID);
-        $r = $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s);
-        $nb = $r->num_rows;
-
-        if ($nb == 0 ) {
-            $s = sprintf('INSERT INTO `commitMessage` (`text`,`userID`) VALUES ("%s", "%s")', $this->db->real_escape_string($logMessage), $this->userID);
-            $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s);
-        }
-
-    }
-
-    /**
      * Get all files from the local copy.
      *
      * @param $node The start folder to retrieve files/folders from.
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.