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:34:55 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=290545

Log:
Remove afterPatchAccept's method from class.php. This method is present in RepositoryManager.php as postPatchAccept'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:33:53 UTC (rev 290544)
+++ web/doc-editor/trunk/php/class.php	2009-11-11 21:34:55 UTC (rev 290545)
@@ -1628,46 +1628,6 @@
     }

     /**
-     * All we must do after a patch have been accepted.
-     *
-     * @param $PatchUniqID ID of the accepted patch.
-     */
-    function afterPatchAccept($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 accepted for '.$a->lang.$a->path.$a->name;
-            $msg = <<<EOD
-Your patch ($PatchUniqID) was accepted and applied to the PHP Manual.
-
-Since the online and downloadable versions of the documentation need some
-time to get updated, we would like to ask you to be a bit patient.
-
-Thank you for your submission, and for helping us make our documentation better.
-
---
-{$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);
-
-    }
-
-    /**
      * All we must do after a patch have been rejected.
      *
      * @param $PatchUniqID ID of the accepted patch.
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.