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

From: Date: Thu, 12 Nov 2009 17:36:54 +0000
Subject: svn: /web/doc-editor/trunk/php/ class.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1158@lists.php.net to get a copy of this message
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.

« previous php.doc.web (#1158) next »