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:25:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290540
Log:
Remove registerAsPendingPatch's method from class.php. This method is present in RepositoryManager.php as addPendingPatch'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:24:12 UTC (rev 290539)
+++ web/doc-editor/trunk/php/class.php 2009-11-11 21:25:23 UTC (rev 290540)
@@ -1150,26 +1150,6 @@
}
/**
- * Register a new patch, into the database.
- *
- * @param $lang The lang.
- * @param $FilePath The path for the file.
- * @param $FileName The name of the file.
- * @param $emailAlert The email of the user how propose this patch.
- * @return Nothing.
- */
- function registerAsPendingPatch($lang, $FilePath, $FileName, $emailAlert) {
-
- $uniqID = md5(uniqid(rand(), true));
-
- $s = sprintf('INSERT into `pendingPatch` (`lang`, `path`, `name`, `posted_by`, `date`, `email`, `uniqID`) VALUES ("%s", "%s", "%s", "%s", now(), "%s", "%s")', $lang, $FilePath, $FileName, $this->cvsLogin, $emailAlert, $uniqID);
- $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s);
-
- return $uniqID;
-
- }
-
- /**
* Get the information from the content of a file.
*
* @param $content The content of the file.