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: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...
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.