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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
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
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.