Syntax error fix
[squirrelmail.git] / plugins / newmail / newmail.php
index a6d669918523186bf45263bbc1c2fa1403b85fd3..7262d5f5b6ff81d830fa7b7ba59e851d72f0c7b0 100644 (file)
@@ -5,18 +5,18 @@
  *
  * Displays all options relating to new mail sounds
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage newmail
  */
 
-/** @ignore */
-define('SM_PATH','../../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
+require('../../include/init.php');
 
 sqGetGlobalVar('numnew', $numnew, SQ_GET);
 $numnew = (int)$numnew;
@@ -27,7 +27,8 @@ $numnew = (int)$numnew;
         '<div style="text-align: center;">'. "\n" .
         html_tag( 'table', "\n" .
             html_tag( 'tr', "\n" .
-                html_tag( 'td', '<b>' . _("SquirrelMail Notice:") . '</b>', 'center', $color[0] )
+                // i18n: %s inserts the organisation name (typically SquirrelMail)
+                html_tag( 'td', '<b>' . sprintf(_("%s notice:"), $org_name) . '</b>', 'center', $color[0] )
             ) .
             html_tag( 'tr', "\n" .
                 html_tag( 'td',
@@ -42,7 +43,7 @@ $numnew = (int)$numnew;
                       ) ,
                   '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
    '</div>' .
-   "<script language=javascript>\n".
+   "<script type=\"text/javascript\">\n".
    "<!--\n".
    "document.nm.bt.focus();\n".
    "-->\n".