* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA 02110-1301, USA
*
- * @copyright 2004-2019 The SquirrelMail Project Team
+ * @copyright 2004-2022 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
var $error=0;
/**
+ * Constructor (PHP5 style, required in some future version of PHP)
* reads translation file and fills translation input object properties
* @param string $filename path to file
* @return boolean false there is a problem with $filename
+TODO: Constructors should not return anything.
*/
- function FileReader($filename) {
+ function __construct($filename) {
// disable stat warnings for unreadable directories
if (@file_exists($filename)) {
}
}
+ /**
+ * Constructor (PHP4 style, kept for compatibility reasons)
+ * reads translation file and fills translation input object properties
+ * @param string $filename path to file
+ * @return boolean false there is a problem with $filename
+TODO: Constructors should not return anything.
+ */
+ function FileReader($filename) {
+ return self::__construct($filename);
+ }
+
/**
* reads data from current position
* @param integer $bytes number of bytes to read