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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Mon, 27 Dec 2010 23:14:01 +0000

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

Log:
Fix lang var

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-27 23:01:57 UTC (rev 306769)
+++ web/doc-editor/trunk/scripts/cron/check_build.php	2010-12-27 23:14:01 UTC (rev 306770)
@@ -68,11 +68,11 @@
         ";

                 //Usefull for language like pt_BR for example, because doc-pt_br don't exist, it's doc-pt-br
-                $lang = str_replace("_", "-", strtolower($lang));
+                $emailLang = str_replace("_", "-", strtolower($lang));

-                $to = ( $lang === 'en' ) ? "[email protected]" : "[email protected]";
+                $to = ( $lang === 'en' ) ? "[email protected]" : "[email protected]";

-                $subject = "[DOC-".strtoupper($lang)."] - Your documentation is broken";
+                $subject = "[DOC-".strtoupper($emailLang)."] - Your documentation is broken";

                 // We send an email for this failed build
                 AccountManager::getInstance()->email($to, $subject, $msg, 'www');
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.