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:27:48 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290541
Log:
Remove markAsNeedDelete's method from class.php. This method is present in RepositoryManager.php as addPendingDelete'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:25:23 UTC (rev 290540)
+++ web/doc-editor/trunk/php/class.php 2009-11-11 21:27:48 UTC (rev 290541)
@@ -1918,25 +1918,6 @@
}
/**
- * Mark a file as need delete.
- *
- * @param $FilePath
- * @param $FileName
- * @return
- */
- function markAsNeedDelete($FilePath, $FileName)
- {
-
- $date = date("Y-m-d H:i:s");
-
- $s = sprintf('INSERT INTO `pendingCommit` (`lang`, `path`, `name`, `revision`, `en_revision`, `reviewed`, `maintainer`, `modified_by`, `date`, `type`) VALUES ("%s","%s", "%s", "-", "-", "-", "-", "%s", "%s", "delete")', $this->cvsLang, $FilePath, $FileName, $this->cvsLogin, $date);
- $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s);
-
- return Array('id'=>$this->db->insert_id, 'by'=>$this->cvsLogin, 'date'=>$date);
-
- }
-
- /**
* Save buildLog status.
*
* @param $lang The lang checked