cvs: pearweb /cron bug-summary.php

[email protected] ("Helgi ?ormar ?orbj?rnsson")
Newsgroups php.pear.cvs,php.pear.core
Message-ID <cvsdufuz1209688118@cvsserver>
dufuz		Fri May  2 00:28:38 2008 UTC

  Modified files:              
    /pearweb/cron	bug-summary.php 
  Log:
  use PEAR QA constant instead $bugEmail
  use SITE constant instead of variable
  
http://cvs.php.net/viewvc.cgi/pearweb/cron/bug-summary.php?r1=1.17&r2=1.18&diff_format=u
Index: pearweb/cron/bug-summary.php
diff -u pearweb/cron/bug-summary.php:1.17 pearweb/cron/bug-summary.php:1.18
--- pearweb/cron/bug-summary.php:1.17	Tue Mar 25 02:17:10 2008
+++ pearweb/cron/bug-summary.php	Fri May  2 00:28:38 2008
@@ -16,7 +16,7 @@
  * | Authors: Helgi �ormar �orbj�rnsson <[email protected]>                   |
  * +----------------------------------------------------------------------+
  *
- * $Id: bug-summary.php,v 1.17 2008/03/25 02:17:10 dufuz Exp $
+ * $Id: bug-summary.php,v 1.18 2008/05/02 00:28:38 dufuz Exp $
  */
 
 require_once 'PEAR.php';
@@ -50,7 +50,7 @@
         (b.bug_type = 'Bug' OR b.bug_type = 'Documentation Problem' OR
          b.bug_type = 'Feature/Change Request')
       AND
-        (p.package_type = '$site'
+        (p.package_type = '" . SITE . "'
              OR
          b.package_name IN ('Documentation'))
     ORDER BY b.package_name, b.id, b.status";
@@ -152,7 +152,7 @@
             }
 
             $from = SITE != 'pecl' ?  ' QA' : ' Dev';
-            $mail_headers = 'From: ' . SITE_BIG . $from . ' <' . $bugEmail .">\r\n";
+            $mail_headers = 'From: ' . SITE_BIG . $from . ' <' . PEAR_QA_EMAIL .">\r\n";
 
             if ($to == '') {
                 $query = "SELECT u.name, u.email
@@ -164,7 +164,7 @@
                             AND
                               m.active = '1'
                             AND
-                              p.package_type = '$site'
+                              p.package_type = '" . SITE . "'
                             AND
                               p.approved = 1
                             AND
@@ -193,6 +193,6 @@
     }
     // Email PEAR-QA the whole bug list
     if (!DEVBOX) {
-        mail(PEAR_QA_EMAIL, SITE_BIG . ' Bug Summary Report', $body, 'From: ' . SITE_BIG . $from . ' <' . $bugEmail .">\r\n", '-f ' . PEAR_BOUNCE_EMAIL);
+        mail(PEAR_QA_EMAIL, SITE_BIG . ' Bug Summary Report', $body, 'From: ' . SITE_BIG . $from . ' <' . PEAR_QA_EMAIL .">\r\n", '-f ' . PEAR_BOUNCE_EMAIL);
     }
 }
\ No newline at end of file
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.