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

From: Date: Wed, 11 Nov 2009 21:33:53 +0000
Subject: svn: /web/doc-editor/trunk/php/ class.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1141@lists.php.net to get a copy of this message
yannick Wed, 11 Nov 2009 21:33:53 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290544 Log: Remove setLastUpdate's method from class.php. This method is present in RepositoryManager.php as setLastUpdate'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-11 21:32:59 UTC (rev 290543) +++ web/doc-editor/trunk/php/class.php 2009-11-11 21:33:53 UTC (rev 290544) @@ -1743,27 +1743,6 @@ } // get_last_update /** - * Set the last update datetime into DB - */ - function setLastUpdate() - { - - $s = 'SELECT lastupdate, by FROM project WHERE name="php"'; - $r = $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s); - $nb = $r->num_rows; - - if( $nb == 0 ) { - $s = sprintf('INSERT INTO project (name, lastupdate, by) VALUES (\'php\', now(), "%s")', ( ( isset($this->cvsLogin ) ) ? $this->cvsLogin : '-' )); - } else { - $s = sprintf('UPDATE project SET lastupdate=now(), by="%s" WHERE name=\'php\'', ( ( isset($this->cvsLogin ) ) ? $this->cvsLogin : '-' )); - } - $r = $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s); - - return; - - } - - /** * Save buildLog status. * * @param $lang The lang checked

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