Add PHP5-style constructor
[squirrelmail.git] / class / l10n.class.php
index 3863999198bf3d9387bb76d4fb277f16b4c01180..d29f2c45b601ce9e26b70880408f0a1eccebcd66 100644 (file)
@@ -1,20 +1,23 @@
 <?php
+
 /**
  * l10n.class
  *
- * Copyright (c) 2003-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * This contains internal SquirrelMail functions needed to handle
  * translations when php gettext extension is missing or some functions
  * are not available.
  *
+ * @copyright 2003-2016 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage i18n
  */
 
+//FIXME is SM_PATH ever not defined here?  defined() calls are CPU intensive enough that we should remove this if it is not really needed
+/** @ignore */
+if (! defined('SM_PATH')) define('SM_PATH','../');
+
 /** Load all php-gettext classes */
 include_once(SM_PATH . 'class/l10n/streams.class.php');
 include_once(SM_PATH . 'class/l10n/gettext.class.php');
-?>
\ No newline at end of file