svn: /web/doc-editor/trunk/php/ class.php
| From: | Yannick Torres | Date: | Wed, 11 Nov 2009 21:35:42 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ class.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1143@lists.php.net to get a copy of this message | ||
yannick Wed, 11 Nov 2009 21:35:42 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290546
Log:
Remove afterPatchReject's method from class.php. This method is present in
RepositoryManager.php as postPatchReject'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:34:55 UTC (rev 290545)
+++ web/doc-editor/trunk/php/class.php 2009-11-11 21:35:42 UTC (rev 290546)
@@ -1628,42 +1628,6 @@
}
/**
- * All we must do after a patch have been rejected.
- *
- * @param $PatchUniqID ID of the accepted patch.
- */
- function afterPatchReject($PatchUniqID) {
-
- $s = sprintf('SELECT * FROM
pendingPatch WHERE uniqID =
"%s"', $PatchUniqID);
- $r = $this->db->query($s) or die('Error:
'.$this->db->error.'|'.$s);
- $a = $r->fetch_object();
-
- // We need to send an email ?
- if (trim($a->email) != '' ) {
-
- $to = trim($a->email);
- $subject = '[PHP-DOC] - Patch Rejected for
'.$a->lang.$a->path.$a->name;
- $msg = <<<EOD
-Your patch ($PatchUniqID) was rejected from the PHP Manual.
-
-Thank you for your submission.
-
---
-{$this->cvsLogin}@php.net
-EOD;
- $this->sendEmail($to, $subject, $msg);
- }
-
- // We need to delete this patch from filesystem...
-
@unlink(DOC_EDITOR_CVS_PATH.$a->lang.$a->path.$a->name.'.'.$a->uniqID.'.patch');
-
- // ... and from DB
- $s = sprintf('DELETE FROM pendingPatch WHERE id =
"%s"', $a->id);
- $this->db->query($s) or die('Error:
'.$this->db->error.'|'.$s);
-
- }
-
- /**
* Search a file regarding his file's ID.
*
* @TODO Better description here...