svn: /web/doc-editor/trunk/scripts/cron/ check_build.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 26 Dec 2010 22:48:47 +0000

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

Log:
Add STDERR to the mail's content

Changed paths:
    U   web/doc-editor/trunk/scripts/cron/check_build.php

Modified: web/doc-editor/trunk/scripts/cron/check_build.php
===================================================================
--- web/doc-editor/trunk/scripts/cron/check_build.php	2010-12-26 21:50:14 UTC (rev 306710)
+++ web/doc-editor/trunk/scripts/cron/check_build.php	2010-12-26 22:48:47 UTC (rev 306711)
@@ -53,9 +53,6 @@
             // What we must do when the build failed
             if( $return["state"] == "ko" ) {

-                // We put into mail only 20 lines
-                $return["logContent"] = array_slice($return["logContent"], 0, 20);
-
                 $msg = "Your documentation is broken. The build is done on Friday.

         Please, try to fix it *quickly*.
@@ -64,7 +61,7 @@

         =============================

-        ".implode("\n", $return["logContent"])."
+        ".$return["logContent"]."

         --
         This email is send automatically by the Php Docbook Online Editor.
@@ -79,7 +76,7 @@

                 echo "email send !\n";
                 // We store it into DB
-                LogManager::getInstance()->saveFailedBuild($lang, $return["logContent"]);
+                LogManager::getInstance()->saveFailedBuild($lang, explode("\n",$return["logContent"]));

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